版本信息
你使用的系统:Windows 10 64位
你是用的JDK: 1.8.0_131 64位
你使用的IDE:IntelliJ IDEA
你使用的IDE版本:2020.1
Forge版本: 1.15.2-31.2.0
错误情况简述
本人之前根据neutrino教程创建了一个维度,但后来更改了模组id且删除了注册和构建维度的相关文件,再启动时可以正常启动,但一旦进入存档,就会出现以下报错(只粘贴了红色字体的日志),且自动退出游戏
报错日志
[23:38:27] [Server thread/ERROR] [ne.mi.ev.EventBus/EVENTBUS]: Exception caught during firing event: Registry Object not present: mechanical_dimension:mechanical_mod_dimension
Index: 1
Listeners:
0: NORMAL
1: ASM: class com.rollyear.mechanical_dimension.world.DimensionsEventHandler onDimensionsRegistry(Lnet/minecraftforge/event/world/RegisterDimensionsEvent;)V
java.lang.NullPointerException: Registry Object not present: mechanical_dimension:mechanical_mod_dimension
at java.base/java.util.Objects.requireNonNull(Objects.java:347)
at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:92)
at com.rollyear.mechanical_dimension.world.DimensionsEventHandler.onDimensionsRegistry(DimensionsEventHandler.java:18)
at net.minecraftforge.eventbus.ASMEventHandler_4_DimensionsEventHandler_onDimensionsRegistry_RegisterDimensionsEvent.invoke(.dynamic)
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
at net.minecraftforge.common.DimensionManager.fireRegister(DimensionManager.java:415)
at net.minecraft.server.MinecraftServer.loadWorlds(MinecraftServer.java:377)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:78)
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:99)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:638)
at java.base/java.lang.Thread.run(Thread.java:844)
[23:38:27] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
java.lang.NullPointerException: Registry Object not present: mechanical_dimension:mechanical_mod_dimension
at java.util.Objects.requireNonNull(Objects.java:347) ~[?:?] {}
at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:92) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200706-1.15.1-recomp.jar:?] {re:classloading}
at com.rollyear.mechanical_dimension.world.DimensionsEventHandler.onDimensionsRegistry(DimensionsEventHandler.java:18) ~[main/:?] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_4_DimensionsEventHandler_onDimensionsRegistry_RegisterDimensionsEvent.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {}
at net.minecraftforge.common.DimensionManager.fireRegister(DimensionManager.java:415) ~[?:?] {re:classloading}
at net.minecraft.server.MinecraftServer.loadWorlds(MinecraftServer.java:377) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:99) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:638) [?:?] {re:classloading,pl:accesstransformer:B}
at java.lang.Thread.run(Thread.java:844) [?:?] {}
[23:38:27] [Server thread/ERROR] [minecraft/MinecraftServer]: Exception stopping the server
java.lang.IllegalArgumentException: Can not hotload overworld. This must be loaded at all times by main Server.
at org.apache.commons.lang3.Validate.isTrue(Validate.java:158) ~[commons-lang3-3.8.1.jar:3.8.1] {}
at net.minecraftforge.common.DimensionManager.initWorld(DimensionManager.java:229) ~[?:?] {re:classloading}
at net.minecraftforge.common.DimensionManager.getWorld(DimensionManager.java:198) ~[?:?] {re:classloading}
at net.minecraft.server.MinecraftServer.getWorld(MinecraftServer.java:1053) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.save(MinecraftServer.java:552) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:587) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:241) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:701) [?:?] {re:classloading,pl:accesstransformer:B}
at java.lang.Thread.run(Thread.java:844) [?:?] {}