Open Zyrafosii opened 1 year ago
We've narrowed it down, it only crashes the players if the broom has a Broom Seat equipped
I have the same issue. crash-2023-07-04_20.07.24-client.txt
It also happens in Enigmatica 9 1.10.2: https://github.com/EnigmaticaModpacks/Enigmatica9/issues/590
Pretty sure this is the issue: src/main/java/net/joefoxe/hexerei/mixin/LivingEntityRendererMixin.java
31. float deltaMovementY = Mth.lerp(partialTicks, (float)broom.deltaMovementOld.y(), (float)broom.getDeltaMovement().y());
and should be fixable by not lerping if it's null:
float deltaMovementY = broom.deltaMovementOld == null ? (float)broom.getDeltaMovement().y() : Mth.lerp(partialTicks, (float)broom.deltaMovementOld.y(), (float)broom.getDeltaMovement().y());
I noticed that this error occurs right around when players often come into each others rendering range so I think it's just an edge case on the first render pass before deltaMovementOld
is set.
Description: Rendering entity in world
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.phys.Vec3.m7098()" because "broom.deltaMovementOld" is null
When exploring, another user flew by on their broom and it crashed me and another user. I'm not using any shaders or resource packs that would change how it renders Crashlog attached
crash-2023-06-13_16.04.22-client.txt