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:
Dylan K. Taylor 2020-02-23 20:59:53 +00:00
parent 95eddbdd74
commit 36685001bd

View File

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