From 36f7790c5168a04ddec44ac3f24b245763e69345 Mon Sep 17 00:00:00 2001 From: Will FP Date: Sat, 9 Dec 2023 16:08:25 +0000 Subject: [PATCH] Fixed incorrect map type given when unfreezing registry --- .../proxy/v1_20_R3/ModernEnchantmentRegisterer.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eco-core/core-nms/v1_20_R3/src/main/kotlin/com/willfp/ecoenchants/proxy/v1_20_R3/ModernEnchantmentRegisterer.kt b/eco-core/core-nms/v1_20_R3/src/main/kotlin/com/willfp/ecoenchants/proxy/v1_20_R3/ModernEnchantmentRegisterer.kt index 97587dba..11d38bbb 100644 --- a/eco-core/core-nms/v1_20_R3/src/main/kotlin/com/willfp/ecoenchants/proxy/v1_20_R3/ModernEnchantmentRegisterer.kt +++ b/eco-core/core-nms/v1_20_R3/src/main/kotlin/com/willfp/ecoenchants/proxy/v1_20_R3/ModernEnchantmentRegisterer.kt @@ -77,7 +77,11 @@ class ModernEnchantmentRegisterer : ModernEnchantmentRegistererProxy { // Unfreeze NMS registry frozenField.set(BuiltInRegistries.ENCHANTMENT, false) - unregisteredIntrusiveHoldersField.set(BuiltInRegistries.ENCHANTMENT, IdentityHashMap>()) + unregisteredIntrusiveHoldersField.set( + BuiltInRegistries.ENCHANTMENT, + IdentityHashMap>() + ) } override fun register(enchant: EcoEnchantBase): Enchantment {