mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed incorrect map type given when unfreezing registry
This commit is contained in:
parent
10ef403d83
commit
36f7790c51
@ -77,7 +77,11 @@ class ModernEnchantmentRegisterer : ModernEnchantmentRegistererProxy {
|
|||||||
|
|
||||||
// Unfreeze NMS registry
|
// Unfreeze NMS registry
|
||||||
frozenField.set(BuiltInRegistries.ENCHANTMENT, false)
|
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 {
|
override fun register(enchant: EcoEnchantBase): Enchantment {
|
||||||
|
Loading…
Reference in New Issue
Block a user