public function onClose(Player $who)
{
unset($this->viewers[spl_object_hash($who)]);
}
public function onClose(Player $who) { $pk = new ContainerClosePacket(); $pk->windowid = $who->getWindowId($this); $who->dataPacket($pk); parent::onClose($who); }