Update ContainerInventory on Transaction refused

This commit is contained in:
Shoghi Cervantes
2014-05-28 17:11:06 +02:00
parent f795a3f565
commit f66560ccd4
11 changed files with 94 additions and 44 deletions

View File

@ -53,8 +53,6 @@ class ChestInventory extends ContainerInventory{
}
public function onClose(Player $who){
parent::onClose($who);
if(count($this->getViewers()) === 1){
$pk = new TileEventPacket;
$pk->x = $this->getHolder()->getX();
@ -64,5 +62,6 @@ class ChestInventory extends ContainerInventory{
$pk->case2 = 0;
Server::getInstance()->broadcastPacket($this->getHolder()->getLevel()->getPlayers(), $pk);
}
parent::onClose($who);
}
}