1.12: fix resource packs, closes #3023

This commit is contained in:
Dylan K. Taylor
2019-07-14 17:22:44 +01:00
parent 3fae57508b
commit 94eb64c2be
2 changed files with 40 additions and 1 deletions

View File

@ -28,6 +28,7 @@ namespace pocketmine\network\mcpe\protocol;
use pocketmine\network\mcpe\NetworkSession;
use pocketmine\network\mcpe\protocol\types\ResourcePackType;
class ResourcePackDataInfoPacket extends DataPacket{
public const NETWORK_ID = ProtocolInfo::RESOURCE_PACK_DATA_INFO_PACKET;
@ -45,7 +46,7 @@ class ResourcePackDataInfoPacket extends DataPacket{
/** @var bool */
public $isPremium = false;
/** @var int */
public $packType = 0; //TODO: check the values for this
public $packType = ResourcePackType::RESOURCES; //TODO: check the values for this
protected function decodePayload(){
$this->packId = $this->getString();