mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
ContainerOpenPacket: fixed entityInv() not initializing x/y/z fields
these are written even when not used, so they have to be initialized.
This commit is contained in:
parent
95eddbdd74
commit
36685001bd
@ -61,6 +61,7 @@ class ContainerOpenPacket extends DataPacket implements ClientboundPacket{
|
||||
$result->windowId = $windowId;
|
||||
$result->type = $windowType;
|
||||
$result->entityUniqueId = $entityUniqueId;
|
||||
$result->x = $result->y = $result->z = 0; //these have to be set even if they aren't used
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user