Added option to disable re-registering vanilla enchantments

This commit is contained in:
Auxilor
2021-04-29 08:44:22 +01:00
parent ced4c560ed
commit 280de8bd1e
2 changed files with 4 additions and 2 deletions

View File

@@ -61,7 +61,8 @@ public class VanillaEnchantments {
MAP.clear();
MAP.putAll(map);
ProxyUtils.getProxy(EcoCraftEnchantmentManagerProxy.class).registerNewCraftEnchantments();
if (PLUGIN.getVanillaEnchantsYml().getBool("enabled")) {
ProxyUtils.getProxy(EcoCraftEnchantmentManagerProxy.class).registerNewCraftEnchantments();
}
}
}

View File

@@ -1,6 +1,7 @@
#
# Allows for modifying certain aspects of vanilla enchantments
#
enabled: false # There may be potential conflicts if modifying vanilla enchantments.
# Set custom max levels for vanilla enchantments.
# To do this, add each enchantment like this: