diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/registration/legacy/LegacyEnchantmentRegisterer.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/registration/legacy/LegacyEnchantmentRegisterer.kt index cc2888b9..69f4fc6c 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/registration/legacy/LegacyEnchantmentRegisterer.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/registration/legacy/LegacyEnchantmentRegisterer.kt @@ -36,6 +36,13 @@ object LegacyEnchantmentRegisterer : EnchantmentRegisterer { } override fun register(enchant: EcoEnchantBase): Enchantment { + // Allow registering new enchantments + Enchantment::class.java.getDeclaredField("acceptingNew") + .apply { + isAccessible = true + set(null, true) + } + val enchantment = LegacyDelegatedEnchantment(enchant) Enchantment.registerEnchantment(enchantment)