mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Removed network channels, bumped protocol
This commit is contained in:
@ -43,7 +43,7 @@ abstract class ContainerInventory extends BaseInventory{
|
||||
$pk->x = $pk->y = $pk->z = 0;
|
||||
}
|
||||
|
||||
$who->dataPacket($pk->setChannel(Network::CHANNEL_WORLD_EVENTS));
|
||||
$who->dataPacket($pk);
|
||||
|
||||
$this->sendContents($who);
|
||||
}
|
||||
@ -51,7 +51,7 @@ abstract class ContainerInventory extends BaseInventory{
|
||||
public function onClose(Player $who){
|
||||
$pk = new ContainerClosePacket();
|
||||
$pk->windowid = $who->getWindowId($this);
|
||||
$who->dataPacket($pk->setChannel(Network::CHANNEL_WORLD_EVENTS));
|
||||
$who->dataPacket($pk);
|
||||
parent::onClose($who);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user