diff --git a/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php b/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php index 73cd7a525..4e1a1352e 100644 --- a/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php +++ b/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php @@ -623,7 +623,7 @@ class NetworkBinaryStream extends BinaryStream{ $result->requestId = $this->getString(); if($result->type === CommandOriginData::ORIGIN_DEV_CONSOLE or $result->type === CommandOriginData::ORIGIN_TEST){ - $result->varlong1 = $this->getVarLong(); + $result->playerEntityUniqueId = $this->getVarLong(); } return $result; @@ -635,7 +635,7 @@ class NetworkBinaryStream extends BinaryStream{ $this->putString($data->requestId); if($data->type === CommandOriginData::ORIGIN_DEV_CONSOLE or $data->type === CommandOriginData::ORIGIN_TEST){ - $this->putVarLong($data->varlong1); + $this->putVarLong($data->playerEntityUniqueId); } } diff --git a/src/network/mcpe/protocol/types/command/CommandOriginData.php b/src/network/mcpe/protocol/types/command/CommandOriginData.php index 3cd523701..ffea4a4fd 100644 --- a/src/network/mcpe/protocol/types/command/CommandOriginData.php +++ b/src/network/mcpe/protocol/types/command/CommandOriginData.php @@ -48,5 +48,5 @@ class CommandOriginData{ public $requestId; /** @var int */ - public $varlong1; + public $playerEntityUniqueId; }