From f0a05bae4586d67baf76b625e98026bf9384a655 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 20 Dec 2023 13:17:49 +0000 Subject: [PATCH 1/3] Fixed again --- .../registration/legacy/LegacyEnchantmentRegisterer.kt | 7 +++++++ 1 file changed, 7 insertions(+) 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 cc2888b940..69f4fc6c5d 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) From 0cf0f331d44f2831432a523db70c57cea71e44e9 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 20 Dec 2023 13:17:52 +0000 Subject: [PATCH 2/3] Fixed again --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index dfb96c34f3..f4edccef97 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ #Sun Dec 03 16:00:06 GMT 2023 kotlin.code.style=official libreforge-version=4.49.2 -version=11.0.4 +version=11.0.5 From 4f8dd0804d4e18fabfbbb349b5e28e089e0f3dd2 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 20 Dec 2023 15:56:45 +0000 Subject: [PATCH 3/3] libreforge-updater --- gradle.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index f4edccef97..03c84cd1a8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ #libreforge-updater -#Sun Dec 03 16:00:06 GMT 2023 +#Wed Dec 20 15:56:45 GMT 2023 kotlin.code.style=official -libreforge-version=4.49.2 -version=11.0.5 +libreforge-version=4.50.0 +version=11.1.0