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