From 01440fb65956f49f27886d1c97e26029bc6d3e83 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 26 Mar 2017 13:40:39 +0100 Subject: [PATCH] Fixed players receiving double SetEntityMotionPackets for themselves --- src/pocketmine/Player.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index b8d8988c6..02fa5038e 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1578,12 +1578,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade if(parent::setMotion($mot)){ if($this->chunk !== null){ $this->level->addEntityMotion($this->chunk->getX(), $this->chunk->getZ(), $this->getId(), $this->motionX, $this->motionY, $this->motionZ); - $pk = new SetEntityMotionPacket(); - $pk->eid = $this->id; - $pk->motionX = $mot->x; - $pk->motionY = $mot->y; - $pk->motionZ = $mot->z; - $this->dataPacket($pk); } if($this->motionY > 0){