Compatibility with paper cardboard. Fixes #1078

This commit is contained in:
gnembon committed 2021-08-25 00:17:31 -03:00
1 parent 3f9a73ac32
commit 35508c3635
1 file changed
+8 -2
@@ -135,8 +135,14 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
this.getServerWorld().getChunkManager().updatePosition(this);
onTeleportationDone(); //<- causes hard crash but would need to be done to enable portals // not as of 1.17
}
super.tick();
this.playerTick();
try
{
super.tick();
this.playerTick();
}
catch (NullPointerException ignored) { } // happens with that paper port thingy - not sure what that would fix, but hey
// the game not gonna crash violently.
}
private void shakeOff()