diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/WorldMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/WorldMixin.java index 1819381f..fcef32b3 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/WorldMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/WorldMixin.java @@ -99,9 +99,8 @@ public abstract class WorldMixin implements WorldBridge { this.typeKey = this.getServer().getHandle().getServer().func_244267_aX().func_230520_a_().getOptionalKey(dimensionType) .orElseGet(() -> { Registry registry = this.getServer().getHandle().getServer().func_244267_aX().func_230520_a_(); - Registry.register(registry, dimension.getLocation(), dimType); - RegistryKey typeRegistryKey = registry.getOptionalKey(dimType).orElseThrow(() -> new IllegalStateException("Cannot register dimension type: " + dimType)); - ArclightMod.LOGGER.warn("Registered unknown dimension type {} as {}", dimType, typeRegistryKey); + RegistryKey typeRegistryKey = RegistryKey.getOrCreateKey(registry.getRegistryKey(), dimension.getLocation()); + ArclightMod.LOGGER.warn("Assign {} to unknown dimension type {} as {}", typeRegistryKey, dimType); return typeRegistryKey; }); }