mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
don't attempt to teleport dead entities
This commit is contained in:
parent
61353ac496
commit
16f4f7a2e0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
+ }
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue