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();