Replaced some bad usages of Vector3 get*() with their respective getFloor*()

This commit is contained in:
Dylan K. Taylor
2018-02-14 18:45:10 +00:00
parent 0b82d5c8d4
commit a84aba5517
5 changed files with 10 additions and 10 deletions

View File

@ -89,6 +89,6 @@ class ChestInventory extends ContainerInventory{
$pk->z = (int) $holder->z;
$pk->eventType = 1; //it's always 1 for a chest
$pk->eventData = $isOpen ? 1 : 0;
$holder->getLevel()->addChunkPacket($holder->getX() >> 4, $holder->getZ() >> 4, $pk);
$holder->getLevel()->addChunkPacket($holder->getFloorX() >> 4, $holder->getFloorZ() >> 4, $pk);
}
}