From b7a5a53c9df3d735fa9c054d22eac8e35fda08a3 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 30 Nov 2019 12:56:16 +0000 Subject: [PATCH] MoveActorDeltaPacket: flags is now a short --- src/pocketmine/network/mcpe/protocol/MoveActorDeltaPacket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/MoveActorDeltaPacket.php b/src/pocketmine/network/mcpe/protocol/MoveActorDeltaPacket.php index 21ee91309..c92265abd 100644 --- a/src/pocketmine/network/mcpe/protocol/MoveActorDeltaPacket.php +++ b/src/pocketmine/network/mcpe/protocol/MoveActorDeltaPacket.php @@ -70,7 +70,7 @@ class MoveActorDeltaPacket extends DataPacket{ protected function decodePayload(){ $this->entityRuntimeId = $this->getEntityRuntimeId(); - $this->flags = $this->getByte(); + $this->flags = $this->getLShort(); $this->xDiff = $this->maybeReadCoord(self::FLAG_HAS_X); $this->yDiff = $this->maybeReadCoord(self::FLAG_HAS_Y); $this->zDiff = $this->maybeReadCoord(self::FLAG_HAS_Z); @@ -93,7 +93,7 @@ class MoveActorDeltaPacket extends DataPacket{ protected function encodePayload(){ $this->putEntityRuntimeId($this->entityRuntimeId); - $this->putByte($this->flags); + $this->putLShort($this->flags); $this->maybeWriteCoord(self::FLAG_HAS_X, $this->xDiff); $this->maybeWriteCoord(self::FLAG_HAS_Y, $this->yDiff); $this->maybeWriteCoord(self::FLAG_HAS_Z, $this->zDiff);