mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Replaced some bad usages of Vector3 get*() with their respective getFloor*()
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user