Move ICondition patch placement to before MC throws an error.

Disable the explicitly erroring test biome modifier.
This commit is contained in:
LexManos committed 2022-12-09 19:52:30 -08:00
1 parent d861f647d7
commit 4cf5508e04
2 files changed
+4 -4

No files matched your search

@@ -9,11 +9,11 @@
}
static <E> void m_255048_(RegistryOps.RegistryInfoLookup p_256369_, ResourceManager p_256349_, ResourceKey<? extends Registry<E>> p_255792_, WritableRegistry<E> p_256211_, Decoder<E> p_256232_, Map<ResourceKey<?>, Exception> p_255884_) {
@@ -138,6 +_,7 @@
@@ -136,6 +_,7 @@
try (Reader reader = resource.m_215508_()) {
JsonElement jsonelement = JsonParser.parseReader(reader);
DataResult<E> dataresult = p_256232_.parse(registryops, jsonelement);
+ if (!net.minecraftforge.common.crafting.conditions.ICondition.shouldRegisterEntry(jsonelement)) continue;
E e = dataresult.getOrThrow(false, (p_248715_) -> {
});
+ if (net.minecraftforge.common.crafting.conditions.ICondition.shouldRegisterEntry(jsonelement))
p_256211_.m_255290_(resourcekey, e, resource.m_247137_() ? Lifecycle.stable() : dataresult.lifecycle());
}