From d3d1e32309303a20ba088133183361db31956462 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 9 Aug 2017 17:01:56 +0100 Subject: [PATCH] Removed teleport zero-offsets (not needed in 1.2) --- src/pocketmine/Player.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 238e8c83a..794bc3904 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3753,7 +3753,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } } - public function sendPosition(Vector3 $pos, float $yaw = null, float $pitch = null, int $mode = MovePlayerPacket::MODE_NORMAL, array $targets = null, float $baseOffsetOverride = null){ + public function sendPosition(Vector3 $pos, float $yaw = null, float $pitch = null, int $mode = MovePlayerPacket::MODE_NORMAL, array $targets = null){ $yaw = $yaw ?? $this->yaw; $pitch = $pitch ?? $this->pitch; @@ -3789,8 +3789,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->removeWindow($window); } - $this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, null, 0.0); - $this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, $this->getViewers(), 0.0); + $this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT); + $this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, $this->getViewers()); $this->spawnToAll();