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
+6
@@ -135,9 +135,15 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
this.getServerWorld().getChunkManager().updatePosition(this); this.getServerWorld().getChunkManager().updatePosition(this);
onTeleportationDone(); //<- causes hard crash but would need to be done to enable portals // not as of 1.17 onTeleportationDone(); //<- causes hard crash but would need to be done to enable portals // not as of 1.17
} }
try
{
super.tick(); super.tick();
this.playerTick(); 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() private void shakeOff()
{ {