Entity: Write attributes in AddEntityPacket

This commit is contained in:
Dylan K. Taylor 2018-01-03 11:30:22 +00:00
parent 70982c145b
commit 06a3c7c478

View File

@ -1877,6 +1877,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$pk->motion = $this->getMotion(); $pk->motion = $this->getMotion();
$pk->yaw = $this->yaw; $pk->yaw = $this->yaw;
$pk->pitch = $this->pitch; $pk->pitch = $this->pitch;
$pk->attributes = $this->attributeMap->getAll();
$pk->metadata = $this->dataProperties; $pk->metadata = $this->dataProperties;
$player->dataPacket($pk); $player->dataPacket($pk);