mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fixed data sending, more particles
This commit is contained in:
@ -60,7 +60,7 @@ class Villager extends Creature implements NPC, Ageable{
|
||||
$pk->z = $this->z;
|
||||
$pk->yaw = $this->yaw;
|
||||
$pk->pitch = $this->pitch;
|
||||
$pk->metadata = $this->getData();
|
||||
$pk->metadata = $this->dataProperties;
|
||||
$player->dataPacket($pk);
|
||||
|
||||
$player->addEntityMotion($this->getId(), $this->motionX, $this->motionY, $this->motionZ);
|
||||
@ -80,4 +80,4 @@ class Villager extends Creature implements NPC, Ageable{
|
||||
public function getProfession(){
|
||||
return $this->namedtag["Profession"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user