diff --git a/src/pocketmine/entity/Human.php b/src/pocketmine/entity/Human.php index 82947a35a..7999dca11 100644 --- a/src/pocketmine/entity/Human.php +++ b/src/pocketmine/entity/Human.php @@ -204,6 +204,9 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{ $pk->x = $this->x; $pk->y = $this->y; $pk->z = $this->z; + $pk->speedX = $this->motionX; + $pk->speedY = $this->motionY; + $pk->speedZ = $this->motionZ; $pk->yaw = $this->yaw; $pk->pitch = $this->pitch; $item = $this->getInventory()->getItemInHand(); @@ -214,8 +217,6 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{ $pk->metadata = $this->dataProperties; $player->dataPacket($pk->setChannel(Network::CHANNEL_ENTITY_SPAWNING)); - $player->addEntityMotion($this->getId(), $this->motionX, $this->motionY, $this->motionZ); - $this->inventory->sendArmorContents($player); } } diff --git a/src/pocketmine/level/particle/FloatingTextParticle.php b/src/pocketmine/level/particle/FloatingTextParticle.php index 55483f1af..2f66d7842 100644 --- a/src/pocketmine/level/particle/FloatingTextParticle.php +++ b/src/pocketmine/level/particle/FloatingTextParticle.php @@ -78,6 +78,9 @@ class FloatingTextParticle extends Particle{ $pk->x = $this->x; $pk->y = $this->y - 2.5; $pk->z = $this->z; + $pk->speedX = 0; + $pk->speedY = 0; + $pk->speedZ = 0; $pk->yaw = 0; $pk->pitch = 0; $pk->item = 0; diff --git a/src/pocketmine/network/protocol/AddPlayerPacket.php b/src/pocketmine/network/protocol/AddPlayerPacket.php index 8d5414d0d..a4347b0a5 100644 --- a/src/pocketmine/network/protocol/AddPlayerPacket.php +++ b/src/pocketmine/network/protocol/AddPlayerPacket.php @@ -40,6 +40,9 @@ class AddPlayerPacket extends DataPacket{ public $x; public $y; public $z; + public $speedX; + public $speedY; + public $speedZ; public $pitch; public $yaw; public $item; @@ -65,6 +68,9 @@ class AddPlayerPacket extends DataPacket{ $this->putFloat($this->x); $this->putFloat($this->y); $this->putFloat($this->z); + $this->putFloat($this->speedX); + $this->putFloat($this->speedY); + $this->putFloat($this->speedZ); $this->putFloat($this->yaw); $this->putFloat($this->yaw); //TODO headrot $this->putFloat($this->pitch);