allow registry manager to be overwritten

This commit is contained in:
dfsek
2022-12-18 22:53:10 -07:00
parent cad0e4105c
commit 2e0f892fff
@@ -68,11 +68,8 @@ 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!");
}
@Override
protected Iterable<BaseAddon> platformAddon() {