Create

Create

86M Downloads

Game crashes after "seeing" a sitted mob on too big to recieve train

ahaququq opened this issue ยท 0 comments

commented

Describe the Bug

Game crashes after trying to sit a mob on a train exciding the packet size limit.

Reproduction Steps

  1. Make a big (~3000 blocks) train
  2. Put a mob on in
  3. Assemble it

Expected Result

Crash and error like this:

[Render thread/ERROR]: Error executing task on Client
java.lang.NullPointerException: Cannot invoke "com.simibubi.create.content.contraptions.Contraption.getSeatOf(java.util.UUID)" because "this.contraption" is null
	at com.simibubi.create.content.contraptions.AbstractContraptionEntity.getPassengerPosition(AbstractContraptionEntity.java:231) ~[create-1.19.2-0.5.1.e.jar%23287!/:0.5.1.e]
	at com.simibubi.create.content.contraptions.AbstractContraptionEntity.m_20351_(AbstractContraptionEntity.java:172) ~[create-1.19.2-0.5.1.e.jar%23287!/:0.5.1.e]
	at net.minecraft.world.entity.Entity.m_6038_(Entity.java:1817) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.world.entity.Entity.m_8127_(Entity.java:1823) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.world.entity.LivingEntity.m_8127_(LivingEntity.java:2724) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.world.entity.Entity.m_20153_(Entity.java:1807) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.client.multiplayer.ClientPacketListener.m_6403_(ClientPacketListener.java:832) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.network.protocol.game.ClientboundSetPassengersPacket.m_5797_(ClientboundSetPassengersPacket.java:36) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.network.protocol.game.ClientboundSetPassengersPacket.m_5797_(ClientboundSetPassengersPacket.java:9) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:116) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1072) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:700) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.client.main.Main.m_239872_(Main.java:212) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at net.minecraft.client.main.Main.main(Main.java:51) ~[client-1.19.2-20220805.130853-srg.jar%23371!/:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.2-43.3.0.jar%23101!/:?]
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2388!/:?]
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?]

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 11

Mod Version

0.5.1e

Minecraft Version

1.19.2

Forge Version

43.3.0

Other Mods

No response

Additional Context

No response