mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 23:15:29 +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){
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user