mirror of
https://github.com/YouHaveTrouble/Enchantio.git
synced 2026-05-12 06:06:55 +00:00
fix enchants failing to disable (#2)
This commit is contained in:
@@ -130,12 +130,11 @@ public class EnchantioConfig {
|
||||
}
|
||||
|
||||
public static boolean getBoolean(ConfigurationSection section, String key, boolean defaultValue) {
|
||||
boolean value = section.contains(key) && section.getBoolean(key);
|
||||
if (!value) {
|
||||
if (!section.contains(key)) {
|
||||
section.set(key, defaultValue);
|
||||
return defaultValue;
|
||||
}
|
||||
return true;
|
||||
return section.getBoolean(key);
|
||||
}
|
||||
|
||||
public static void migrateEnchantTags(@NotNull ConfigurationSection section) {
|
||||
|
||||
Reference in New Issue
Block a user