More protocol updates

This commit is contained in:
Shoghi Cervantes
2015-04-15 15:53:11 +02:00
parent c36c0dfa66
commit 5ca4f5416c
3 changed files with 12 additions and 2 deletions

View File

@ -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);
}
}