From 26daa4531d5beef6ae62b1b645e5cdae3d6850c8 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Mon, 13 May 2019 00:16:57 +0100 Subject: [PATCH] Always register WorldGuard shop flag (Fixes #230) The configuration isn't loaded yet when the plugin loaded and the flag initialised so we can't check that there. The config option is checked at the point where the flag is handled though so there is no difference from the intended functionality when registering the flag anyways. The only downside is that this could be a tiny bit confusing to the user in the end but I think that is a small price to pay when it wouldn't be working at all otherwise. --- src/main/java/com/Acrobot/ChestShop/Dependencies.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Dependencies.java b/src/main/java/com/Acrobot/ChestShop/Dependencies.java index 5a5a865..3bf290a 100644 --- a/src/main/java/com/Acrobot/ChestShop/Dependencies.java +++ b/src/main/java/com/Acrobot/ChestShop/Dependencies.java @@ -41,9 +41,7 @@ public class Dependencies { switch (dependency) { //Terrain protection plugins case WorldGuard: - if (Properties.WORLDGUARD_USE_FLAG) { - WorldGuardFlags.ENABLE_SHOP.getName(); // force the static code to run - } + WorldGuardFlags.ENABLE_SHOP.getName(); // force the static code to run break; }