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

@ -28,6 +28,7 @@ use pocketmine\math\Vector3;
abstract class ContainerInventory extends BaseInventory{
public function onOpen(Player $who){
parent::onOpen($who);
$pk = new ContainerOpenPacket;
$pk->windowid = $who->getWindowId($this);
$pk->type = $this->getType()->getNetworkType();
@ -49,5 +50,6 @@ abstract class ContainerInventory extends BaseInventory{
$pk = new ContainerClosePacket;
$pk->windowid = $who->getWindowId($this);
$who->dataPacket($pk);
parent::onClose($who);
}
}