Implement Armor changes as Transactions

This commit is contained in:
Shoghi Cervantes
2014-09-30 09:37:58 +02:00
parent f888acbd7c
commit ee8ad6f92a
3 changed files with 19 additions and 49 deletions

View File

@ -293,13 +293,12 @@ class PlayerInventory extends BaseInventory{
foreach($target as $player){
if($player === $this->getHolder()){
/** @var Player $player */
$pk2 = clone $pk;
$pk2->eid = 0;
/*
//$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);