mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-20 07:24:21 +00:00
allow registry manager to be overwritten
This commit is contained in:
1 parent
cad0e4105c
commit
2e0f892fff
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