diff --git a/pom.xml b/pom.xml
index 563ae08..ddfa371 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
21
UTF-8
- 1.13.0
+ 1.13.1
https://youhavetrouble.me
diff --git a/src/main/java/me/youhavetrouble/enchantio/EnchantioConfig.java b/src/main/java/me/youhavetrouble/enchantio/EnchantioConfig.java
index 391c819..90e1f62 100644
--- a/src/main/java/me/youhavetrouble/enchantio/EnchantioConfig.java
+++ b/src/main/java/me/youhavetrouble/enchantio/EnchantioConfig.java
@@ -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) {