Make RegistryObject.getHolder lazy, Should help cases where vanilla registries use holders from other vanilla registries. Closes #9961

This commit is contained in:
LexManos committed 2024-05-12 10:53:10 -07:00
1 parent dffa3dd4c9
commit c700b4ea9d
4 files changed
+68 -94

No files matched your search

@@ -377,7 +377,8 @@ class NamespacedWrapper<T> extends MappedRegistry<T> implements ILockableRegistr
return this.frozen;
}
boolean isIntrusive() {
@Override
public boolean isIntrusive() {
return this.intrusiveHolderCallback != null && this.stage == RegistryManager.ACTIVE;
}