Send PlayerArmorEquipmentPacket instead of ContainerSetContentPacket with id 0x78

This commit is contained in:
Shoghi Cervantes
2014-09-29 23:43:52 +02:00
parent 215691f1c4
commit f888acbd7c
2 changed files with 10 additions and 1 deletions

View File

@ -293,9 +293,13 @@ class PlayerInventory extends BaseInventory{
foreach($target as $player){
if($player === $this->getHolder()){
/** @var Player $player */
$pk2 = clone $pk;
$pk2->eid = 0;
/*
$pk2 = new ContainerSetContentPacket;
$pk2->windowid = 0x78; //Armor window id constant
$pk2->slots = $armor;
*/
$player->dataPacket($pk2);
}else{
$player->dataPacket(clone $pk);