Railcraft Reborn

Railcraft Reborn

3M Downloads

Electric locomotive wont place down

kingskyline opened this issue ยท 0 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Bug

Placing down a electric locomotive causes errors and minor crash on the servers and does not place , can still place the steam locomotive and the creative one but not the electric , was working before on 1.0.4 after updating to 1.0.6 does not continue to work

Configuration

- Mod version:1.0.6
- NeoForge/Forge version:47.1.46
- Minecraft version: 1.20.1
- Are you playing on a server?: yes

To Reproduce

placed down electric locomotive on track , doesn't place
tried creative locomotive , this places down no issues
tried steam locomotive , this places down no issues

Restarted server still having the same issue
trying to place the electric locomotive cause other players to desync from the server

Expected behavior

expected to place down the electric locomotive on the track without desyncing players and the locomotive to appear on the tracks and useable

Logs & Environment

[12Sep2023 22:38:41.029] [Server thread/ERROR] [net.minecraft.network.protocol.PacketUtils/]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundUseItemOnPacket@5d2530e9, suppressing error
java.lang.IllegalArgumentException: Can not deserialize to an instance that isn't the default implementation
	at net.minecraftforge.energy.EnergyStorage.deserializeNBT(EnergyStorage.java:106) ~[forge-1.20.1-47.1.46-universal.jar%23220!/:?]
	at mods.railcraft.world.entity.vehicle.locomotive.ElectricLocomotive.loadFromItemStack(ElectricLocomotive.java:178) ~[railcraft-reborn-1.20.1-1.0.6.jar%23199!/:1.20.1-1.0.6]
	at mods.railcraft.world.entity.vehicle.locomotive.Locomotive.<init>(Locomotive.java:119) ~[railcraft-reborn-1.20.1-1.0.6.jar%23199!/:1.20.1-1.0.6]
	at mods.railcraft.world.entity.vehicle.locomotive.ElectricLocomotive.<init>(ElectricLocomotive.java:56) ~[railcraft-reborn-1.20.1-1.0.6.jar%23199!/:1.20.1-1.0.6]
	at mods.railcraft.world.item.CartItem.m_6225_(CartItem.java:38) ~[railcraft-reborn-1.20.1-1.0.6.jar%23199!/:1.20.1-1.0.6]
	at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:585) ~[forge-1.20.1-47.1.46-universal.jar%23220!/:?]
	at net.minecraft.world.item.ItemStack.m_41661_(ItemStack.java:245) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.level.ServerPlayerGameMode.m_7179_(ServerPlayerGameMode.java:355) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.m_6371_(ServerGamePacketListenerImpl.java:1057) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.m_5797_(ServerboundUseItemOnPacket.java:34) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.m_5797_(ServerboundUseItemOnPacket.java:8) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.network.protocol.PacketUtils.m_263899_(PacketUtils.java:22) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:156) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:770) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:161) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:130) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:753) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:747) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:115) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:732) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:665) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23215!/:?]
	at java.lang.Thread.run(Thread.java:1623) ~[?:?]

Screenshots & Video

https://gyazo.com/79f26d6bdd991c5c7dc44a6ba6e79f5d