diff --git a/src/pocketmine/network/mcpe/protocol/ResourcePackStackPacket.php b/src/pocketmine/network/mcpe/protocol/ResourcePackStackPacket.php index 58493fd76..41ed9cdc1 100644 --- a/src/pocketmine/network/mcpe/protocol/ResourcePackStackPacket.php +++ b/src/pocketmine/network/mcpe/protocol/ResourcePackStackPacket.php @@ -42,20 +42,20 @@ class ResourcePackStackPacket extends DataPacket{ public $resourcePackStack = []; protected function decodePayload() : void{ - /*$this->mustAccept = $this->getBool(); + $this->mustAccept = $this->getBool(); $behaviorPackCount = $this->getUnsignedVarInt(); while($behaviorPackCount-- > 0){ - $packId = $this->getString(); - $version = $this->getString(); - $this->behaviorPackStack[] = new ResourcePackInfoEntry($packId, $version); + $this->getString(); + $this->getString(); + $this->getString(); } $resourcePackCount = $this->getUnsignedVarInt(); while($resourcePackCount-- > 0){ - $packId = $this->getString(); - $version = $this->getString(); - $this->resourcePackStack[] = new ResourcePackInfoEntry($packId, $version); - }*/ + $this->getString(); + $this->getString(); + $this->getString(); + } } protected function encodePayload() : void{ diff --git a/src/pocketmine/network/mcpe/protocol/ResourcePacksInfoPacket.php b/src/pocketmine/network/mcpe/protocol/ResourcePacksInfoPacket.php index 7ed8fdd6d..ab6c254bc 100644 --- a/src/pocketmine/network/mcpe/protocol/ResourcePacksInfoPacket.php +++ b/src/pocketmine/network/mcpe/protocol/ResourcePacksInfoPacket.php @@ -40,24 +40,26 @@ class ResourcePacksInfoPacket extends DataPacket{ public $resourcePackEntries = []; protected function decodePayload() : void{ - /*$this->mustAccept = $this->getBool(); + $this->mustAccept = $this->getBool(); $behaviorPackCount = $this->getLShort(); while($behaviorPackCount-- > 0){ - $id = $this->getString(); - $version = $this->getString(); - $size = $this->getLLong(); - $this->behaviorPackEntries[] = new ResourcePackInfoEntry($id, $version, $size); + $this->getString(); + $this->getString(); + $this->getLLong(); + $this->getString(); + $this->getString(); $this->getString(); } $resourcePackCount = $this->getLShort(); while($resourcePackCount-- > 0){ - $id = $this->getString(); - $version = $this->getString(); - $size = $this->getLLong(); - $this->resourcePackEntries[] = new ResourcePackInfoEntry($id, $version, $size); $this->getString(); - }*/ + $this->getString(); + $this->getLLong(); + $this->getString(); + $this->getString(); + $this->getString(); + } } protected function encodePayload() : void{