Protocol changes for 1.16.100

This commit is contained in:
Dylan K. Taylor
2020-11-21 01:07:25 +00:00
parent 8273f789ee
commit 98cdc80d37
35 changed files with 1206 additions and 219 deletions

View File

@ -64,6 +64,7 @@ abstract class ContainerInventory extends BaseInventory{
public function onClose(Player $who) : void{
$pk = new ContainerClosePacket();
$pk->windowId = $who->getWindowId($this);
$pk->server = $who->getClosingWindowId() !== $pk->windowId;
$who->dataPacket($pk);
parent::onClose($who);
}