From 4638ccbb68c398b72a6807a81c1b2a3369df07f3 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 19 Mar 2017 21:58:12 +0000 Subject: [PATCH] Remove this workaround (client bug fixed in 1.0.5 beta) --- src/pocketmine/Player.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index ce1823c3c..0fa8cda49 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2092,10 +2092,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade public function handleMovePlayer(MovePlayerPacket $packet) : bool{ $newPos = new Vector3($packet->x, $packet->y - $this->getEyeHeight(), $packet->z); - if($newPos->distanceSquared($this) == 0 and ($packet->yaw % 360) === $this->yaw and ($packet->pitch % 360) === $this->pitch){ //player hasn't moved, just client spamming packets - return true; - } - $revert = false; if(!$this->isAlive() or $this->spawned !== true){ $revert = true;