Open
Issue #54 · created by 1icri ·

Crash when raycasting into another subchunk

First experienced this crash when climbing a ladder looking upwards while eating, but have found it to be triggered by any action (holding left or right click) while moving that causes a ray-cast into the subchunk above the one the player is in. It seems to occur right when the furthest point of the ray enters the new subchunk, and RayTraceResult hit or one of its fields becomes null. This is unchecked in PlayerEventState.onTick().

Crash message (shortened): java.lang.NullPointerException: Exception in server tick at com.mumfrey.liteloader.core.PlayerEventState.onTick(PlayerEventState.java:95)

I have reproduced this most consistently with the following setup (though it may be coincidence): Climbing a ladder at 0,0 in the nether, items in both hands, render distance set to 2.

1 participant
liteloader/LiteLoader#54