mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 15:29:47 +00:00
fix armour not being set correctly on entity spawn
This commit is contained in:
parent
d9bc48bb01
commit
c13b352b76
@ -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();
|
||||
|
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user