mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
Entity: Write attributes in AddEntityPacket
This commit is contained in:
parent
70982c145b
commit
06a3c7c478
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user