From 2868940a90f7995e676494722cace7e125d8bcd8 Mon Sep 17 00:00:00 2001 From: BI0MER Date: Wed, 30 Aug 2017 00:08:20 +0500 Subject: [PATCH] Fix for teleport() function typo --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index c6ab54768..481fdc335 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3023,7 +3023,7 @@ public function teleport(Vector3 $pos, $yaw = null, $pitch = null){ $this->removeWindow($this->currentWindow); } $this->forceMovement = new Vector3($this->x, $this->y, $this->z); - $this->sendPosition($this, $this->pitch, $this->yaw, MovePlayerPacket::MODE_RESET); + $this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_RESET); $this->resetFallDistance(); $this->nextChunkOrderRun = 0;