mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Merge branch 'stable'
# Conflicts: # resources/vanilla # src/pocketmine/inventory/ArmorInventory.php
This commit is contained in:
@ -841,7 +841,11 @@ class NetworkSession{
|
||||
public function onMobArmorChange(Living $mob) : void{
|
||||
$pk = new MobArmorEquipmentPacket();
|
||||
$pk->entityRuntimeId = $mob->getId();
|
||||
$pk->slots = $mob->getArmorInventory()->getContents(true); //beware this order might change in the future
|
||||
$inv = $mob->getArmorInventory();
|
||||
$pk->head = $inv->getHelmet();
|
||||
$pk->chest = $inv->getChestplate();
|
||||
$pk->legs = $inv->getLeggings();
|
||||
$pk->feet = $inv->getBoots();
|
||||
$this->sendDataPacket($pk);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user