don't attempt to teleport dead entities

This commit is contained in:
sulu5890 2021-10-24 22:48:14 -05:00
parent 61353ac496
commit 16f4f7a2e0

View File

@ -398,7 +398,7 @@
+ // CraftBukkit start
+ public void postTick() {
+ // No clean way to break out of ticking once the entity has been copied to a new world, so instead we move the portalling later in the tick cycle
+ if (!(this instanceof ServerPlayer)) {
+ if (!(this instanceof ServerPlayer) && this.isAlive()) { // Paper - don't attempt to teleport dead entities
+ this.handlePortal();
+ }
+ }