Game crashes when Loco hits cactus or enters lava
JSDrums1 opened this issue ยท 0 comments
Is there an existing issue for this?
- I have searched the existing issues
Description of the Bug
When a running Loco hits a Cactus or Lava, the game crashes.
This bug has been reported multiple times and has been marked as complete each time but with new updates it is still present. Don't want it to go unresolved as this is a main method of breaking a loco to free up a line.
Railcraft Reborn version
1.0.9
NeoForge/Forge version
Forge 47.1.3
Minecraft version
1.20.1
Minecraft server
Yes
To Reproduce
Place some rail with a cactus or some lava at the end
Run any locomotive to wards the cactus or lava
Expected behavior
Locomotive breaks and game continues to run.
Logs & Environment
[12:57:49] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.ReportedException: Ticking entity
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:897) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:89) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalStateException: RollingStock missing on CreativeLocomotive['Creative Locomotive'/48264, l='ServerLevel[New World]', x=-2620.57, y=-60.00, z=334.50, removed=KILLED]
at mods.railcraft.api.carts.RollingStock.lambda$getOrThrow$0(RollingStock.java:65) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at net.minecraftforge.common.util.LazyOptional.orElseThrow(LazyOptional.java:261) ~[forge-1.20.1-47.1.43-universal.jar%23347!/:?]
at mods.railcraft.api.carts.RollingStock.getOrThrow(RollingStock.java:65) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at mods.railcraft.world.entity.vehicle.locomotive.Locomotive.isShutdown(Locomotive.java:462) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at mods.railcraft.world.entity.vehicle.locomotive.Locomotive.isIdle(Locomotive.java:453) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at mods.railcraft.world.entity.vehicle.locomotive.Locomotive.isRunning(Locomotive.java:446) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at mods.railcraft.world.entity.vehicle.locomotive.Locomotive.m_7114_(Locomotive.java:555) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at net.minecraft.world.entity.vehicle.AbstractMinecart.m_6401_(AbstractMinecart.java:508) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.world.entity.vehicle.AbstractMinecart.m_8119_(AbstractMinecart.java:317) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at mods.railcraft.world.entity.vehicle.locomotive.Locomotive.m_8119_(Locomotive.java:495) ~[railcraft-reborn-1.20.1-1.0.9.jar%23306!/:1.20.1-1.0.9]
at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:693) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.world.level.Level.m_46653_(Level.java:479) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:343) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:323) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[client-1.20.1-20230612.114412-srg.jar%23342!/:?]
Screenshots & Video
No response