diff --git a/src/main/java/electroblob/wizardry/Settings.java b/src/main/java/electroblob/wizardry/Settings.java index 4ae33fd8..6895f3dd 100644 --- a/src/main/java/electroblob/wizardry/Settings.java +++ b/src/main/java/electroblob/wizardry/Settings.java @@ -198,6 +198,8 @@ public final class Settings { public boolean blindnessTweak = true; /** [Server-only] Whether using bonemeal on grass blocks has a chance to grow crystal flowers. */ public boolean bonemealGrowsCrystalFlowers = true; + /** [Server-only] Whether wands only decrement their cooldowns if a player holds them. */ + public boolean wandsMustBeHeldToDecrementCooldown = false; /** [Server-only] Whether to enable Wizardry mob loot injection. Allows an easier switch instead of blacklisting all entities. */ public boolean injectMobDrops = true; /** @@ -668,6 +670,13 @@ public final class Settings { bonemealGrowsCrystalFlowers = property.getBoolean(); propOrder.add(property.getName()); + property = config.get(GAMEPLAY_CATEGORY, "wandsMustBeHeldToDecrementCooldown", false, + "Whether wands only decrement their cooldowns if a player holds them."); + property.setLanguageKey("config." + Wizardry.MODID + ".wands_must_be_held_to_decrement_cooldown"); + Wizardry.proxy.setToNamedBooleanEntry(property); + wandsMustBeHeldToDecrementCooldown = property.getBoolean(); + propOrder.add(property.getName()); + checkForRedundantOptions(GAMEPLAY_CATEGORY, propOrder); // Must be before the order is set! config.setCategoryPropertyOrder(GAMEPLAY_CATEGORY, propOrder);