Added option to disable re-registering vanilla enchantments
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user