Renamed BlockEventPacket fields

This commit is contained in:
Dylan K. Taylor
2017-10-16 19:55:42 +01:00
parent f4ff5d81ea
commit f14b7cbf78
2 changed files with 8 additions and 8 deletions

View File

@ -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);
}
}