mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
allow registry manager to be overwritten
This commit is contained in:
1 parent
cd65785de4
commit
4a918d00a3
1 file changed
+1
-4
+1
-4
@@ -68,10 +68,7 @@ public abstract class LifecyclePlatform extends ModPlatform {
|
||||
}
|
||||
|
||||
public static void addRegistryManager(DynamicRegistryManager in) {
|
||||
if(DYNAMIC_REGISTRY_MANAGER.get() == null) {
|
||||
DYNAMIC_REGISTRY_MANAGER.set(Objects.requireNonNull(in));
|
||||
}
|
||||
throw new IllegalStateException("Already set!");
|
||||
DYNAMIC_REGISTRY_MANAGER.set(Objects.requireNonNull(in));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user