mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Make RegistryObject.getHolder lazy, Should help cases where vanilla registries use holders from other vanilla registries. Closes #9961
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user