Add unknown field to ResourcePackInfoEntry

This commit is contained in:
Dylan K. Taylor 2016-11-02 13:41:36 +00:00
parent b34d438ed9
commit d3c62988b0
2 changed files with 7 additions and 7 deletions

View File

@ -45,13 +45,13 @@ class ResourcePacksInfoPacket extends DataPacket{
foreach($this->behaviourPackEntries as $entry){ foreach($this->behaviourPackEntries as $entry){
$this->putString($entry->getPackId()); $this->putString($entry->getPackId());
$this->putString($entry->getVersion()); $this->putString($entry->getVersion());
$this->putLong($entry->getUint64()); $this->putLong($entry->getPackSize());
} }
$this->putShort(count($this->resourcePackEntries)); $this->putShort(count($this->resourcePackEntries));
foreach($this->resourcePackEntries as $entry){ foreach($this->resourcePackEntries as $entry){
$this->putString($entry->getPackId()); $this->putString($entry->getPackId());
$this->putString($entry->getVersion()); $this->putString($entry->getVersion());
$this->putLong($entry->getUint64()); $this->putLong($entry->getPackSize());
} }
} }
} }

View File

@ -24,12 +24,12 @@ namespace pocketmine\resourcepacks;
class ResourcePackInfoEntry{ class ResourcePackInfoEntry{
protected $packId; //UUID protected $packId; //UUID
protected $version; 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->packId = $packId;
$this->version = $version; $this->version = $version;
$this->uint64 = $uint64; $this->packSize = $packSize;
} }
public function getPackId() : string{ public function getPackId() : string{
@ -40,8 +40,8 @@ class ResourcePackInfoEntry{
return $this->version; return $this->version;
} }
public function getUint64(){ public function getPackSize(){
return $this->uint64; return $this->packSize;
} }
} }