mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Move ICondition patch placement to before MC throws an error.
Disable the explicitly erroring test biome modifier.
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user