mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
don't attempt to teleport dead entities
This commit is contained in:
parent
61353ac496
commit
16f4f7a2e0
@ -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 New Issue
Block a user