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

@ -51,9 +51,9 @@ abstract class ContainerInventory extends BaseInventory{
if($holder instanceof Entity){
$pk->entityUniqueId = $holder->getId();
}elseif($holder instanceof Vector3){
$pk->x = (int) $holder->getX();
$pk->y = (int) $holder->getY();
$pk->z = (int) $holder->getZ();
$pk->x = $holder->getFloorX();
$pk->y = $holder->getFloorY();
$pk->z = $holder->getFloorZ();
}
$who->dataPacket($pk);