Fixed Plan thinking Buycraft Extension was disabled

- Due to assumption that Enabled field existed Buycraft was left disabled

Affects issues:
- Fixed #1351
This commit is contained in:
Risto Lahtela 2020-03-26 12:02:33 +02:00
parent 99885d2381
commit 43c3596cde

View File

@ -63,7 +63,7 @@ public class ExtensionSettings {
Set<String> disabledPlugins = new HashSet<>();
for (ConfigNode plugin : section.getChildren()) {
if (!plugin.getBoolean("Enabled")) {
if (plugin.contains("Enabled") && !plugin.getBoolean("Enabled")) {
disabledPlugins.add(plugin.getKey(false));
}
}