mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
allow registry manager to be overwritten
This commit is contained in:
@@ -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