diff --git a/src/player/Player.php b/src/player/Player.php index 112baf821..7b896ab3a 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -2373,6 +2373,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ if(parent::teleport($pos, $yaw, $pitch)){ $this->removeCurrentWindow(); + $this->stopSleep(); $this->sendPosition($this->location, $this->location->yaw, $this->location->pitch, MovePlayerPacket::MODE_TELEPORT); $this->broadcastMovement(true); @@ -2384,7 +2385,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ if($this->spawnChunkLoadCount !== -1){ $this->spawnChunkLoadCount = 0; } - $this->stopSleep(); $this->blockBreakHandler = null; //TODO: workaround for player last pos not getting updated