From d3c62988b09601658304bf4ba48a1b1879fcc6ab Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 2 Nov 2016 13:41:36 +0000 Subject: [PATCH] Add unknown field to ResourcePackInfoEntry --- .../network/protocol/ResourcePacksInfoPacket.php | 4 ++-- src/pocketmine/resourcepacks/ResourcePackInfoEntry.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php b/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php index 8f029c455..c4ee1ed29 100644 --- a/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php +++ b/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php @@ -45,13 +45,13 @@ class ResourcePacksInfoPacket extends DataPacket{ foreach($this->behaviourPackEntries as $entry){ $this->putString($entry->getPackId()); $this->putString($entry->getVersion()); - $this->putLong($entry->getUint64()); + $this->putLong($entry->getPackSize()); } $this->putShort(count($this->resourcePackEntries)); foreach($this->resourcePackEntries as $entry){ $this->putString($entry->getPackId()); $this->putString($entry->getVersion()); - $this->putLong($entry->getUint64()); + $this->putLong($entry->getPackSize()); } } } \ No newline at end of file diff --git a/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php b/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php index 2613ee5da..ac7c5f1b1 100644 --- a/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php +++ b/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php @@ -24,12 +24,12 @@ namespace pocketmine\resourcepacks; class ResourcePackInfoEntry{ protected $packId; //UUID protected $version; - protected $uint64; // unknown + protected $packSize; - public function __construct(string $packId, string $version, $uint64){ + public function __construct(string $packId, string $version, $packSize){ $this->packId = $packId; $this->version = $version; - $this->uint64 = $uint64; + $this->packSize = $packSize; } public function getPackId() : string{ @@ -40,8 +40,8 @@ class ResourcePackInfoEntry{ return $this->version; } - public function getUint64(){ - return $this->uint64; + public function getPackSize(){ + return $this->packSize; } } \ No newline at end of file