From e83ffd5afe637982c6b5f9bb5b915fbb235703ad Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 5 Jun 2017 16:47:12 +0100 Subject: [PATCH] Fixed players don't see teleport movement, close #921 --- src/pocketmine/Player.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 93b9dcb4a..9a7464451 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -4018,6 +4018,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade } $this->sendPosition($this, null, null, MovePlayerPacket::MODE_RESET); + //This only needs to be sent to players who could see us before the teleport. + $this->sendPosition($this, null, null, MovePlayerPacket::MODE_RESET, $this->getViewers()); + $this->spawnToAll(); $this->forceMovement = $this->teleportPosition; $this->teleportPosition = null;