mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Renamed BlockEventPacket fields
This commit is contained in:
@ -85,8 +85,8 @@ class ChestInventory extends ContainerInventory{
|
||||
$pk->x = (int) $vector->x;
|
||||
$pk->y = (int) $vector->y;
|
||||
$pk->z = (int) $vector->z;
|
||||
$pk->case1 = 1; //it's always 1 for a chest
|
||||
$pk->case2 = $isOpen ? 1 : 0;
|
||||
$pk->eventType = 1; //it's always 1 for a chest
|
||||
$pk->eventData = $isOpen ? 1 : 0;
|
||||
$this->getHolder()->getLevel()->addChunkPacket($this->getHolder()->getX() >> 4, $this->getHolder()->getZ() >> 4, $pk);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user