--- a/net/minecraft/util/registry/SimpleRegistry.java +++ b/net/minecraft/util/registry/SimpleRegistry.java @@ -212,7 +212,8 @@ } public static Codec> func_241745_c_(RegistryKey> p_241745_0_, Lifecycle p_241745_1_, Codec p_241745_2_) { - return Codec.unboundedMap(ResourceLocation.field_240908_a_.xmap(RegistryKey.func_240902_a_(p_241745_0_), RegistryKey::func_240901_a_), p_241745_2_).xmap((p_239656_2_) -> { + // FORGE: Fix MC-197860 + return new net.minecraftforge.common.LenientUnboundedMapCodec<>(ResourceLocation.field_240908_a_.xmap(RegistryKey.func_240902_a_(p_241745_0_), RegistryKey::func_240901_a_), p_241745_2_).xmap((p_239656_2_) -> { SimpleRegistry simpleregistry = new SimpleRegistry<>(p_241745_0_, p_241745_1_); p_239656_2_.forEach((p_239653_2_, p_239653_3_) -> { simpleregistry.func_218381_a(p_239653_2_, p_239653_3_, p_241745_1_);