Fixed incorrect map type given when unfreezing registry

This commit is contained in:
Will FP 2023-12-09 16:08:25 +00:00
parent 10ef403d83
commit 36f7790c51

View File

@ -77,7 +77,11 @@ class ModernEnchantmentRegisterer : ModernEnchantmentRegistererProxy {
// Unfreeze NMS registry
frozenField.set(BuiltInRegistries.ENCHANTMENT, false)
unregisteredIntrusiveHoldersField.set(BuiltInRegistries.ENCHANTMENT, IdentityHashMap<Enchantment, Holder.Reference<Enchantment>>())
unregisteredIntrusiveHoldersField.set(
BuiltInRegistries.ENCHANTMENT,
IdentityHashMap<net.minecraft.world.item.enchantment.Enchantment,
Holder.Reference<net.minecraft.world.item.enchantment.Enchantment>>()
)
}
override fun register(enchant: EcoEnchantBase): Enchantment {