mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Add unknown field to ResourcePackInfoEntry
This commit is contained in:
parent
b34d438ed9
commit
d3c62988b0
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user