diff --git a/src/pocketmine/entity/Human.php b/src/pocketmine/entity/Human.php index 74d099df0..c17fc1338 100644 --- a/src/pocketmine/entity/Human.php +++ b/src/pocketmine/entity/Human.php @@ -866,7 +866,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{ //TODO: Hack for MCPE 1.2.13: DATA_NAMETAG is useless in AddPlayerPacket, so it has to be sent separately $this->sendData($player, [EntityMetadataProperties::NAMETAG => [EntityMetadataTypes::STRING, $this->getNameTag()]]); - $this->armorInventory->sendContents($player); + $player->getNetworkSession()->onMobArmorChange($this); if(!($this instanceof Player)){ $pk = new PlayerListPacket(); diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index f73a10092..048434590 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -923,7 +923,7 @@ abstract class Living extends Entity implements Damageable{ protected function sendSpawnPacket(Player $player) : void{ parent::sendSpawnPacket($player); - $this->armorInventory->sendContents($player); + $player->getNetworkSession()->onMobArmorChange($this); } protected function onDispose() : void{