Fixed players receiving double SetEntityMotionPackets for themselves

This commit is contained in:
Dylan K. Taylor 2017-03-26 13:40:39 +01:00
parent dda8c6cc8f
commit 01440fb659

View File

@ -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){