mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
"Fixed" resource packs
TODO: new fields
This commit is contained in:
parent
cb7264e0e5
commit
7c66af5994
@ -45,6 +45,7 @@ class ResourcePacksInfoPacket extends DataPacket{
|
||||
$version = $this->getString();
|
||||
$size = $this->getLLong();
|
||||
$this->behaviorPackEntries[] = new ResourcePackInfoEntry($id, $version, $size);
|
||||
$this->getString();
|
||||
}
|
||||
|
||||
$resourcePackCount = $this->getLShort();
|
||||
@ -53,6 +54,7 @@ class ResourcePacksInfoPacket extends DataPacket{
|
||||
$version = $this->getString();
|
||||
$size = $this->getLLong();
|
||||
$this->resourcePackEntries[] = new ResourcePackInfoEntry($id, $version, $size);
|
||||
$this->getString();
|
||||
}*/
|
||||
}
|
||||
|
||||
@ -65,12 +67,14 @@ class ResourcePacksInfoPacket extends DataPacket{
|
||||
$this->putString($entry->getPackId());
|
||||
$this->putString($entry->getPackVersion());
|
||||
$this->putLLong($entry->getPackSize());
|
||||
$this->putString(""); //TODO
|
||||
}
|
||||
$this->putLShort(count($this->resourcePackEntries));
|
||||
foreach($this->resourcePackEntries as $entry){
|
||||
$this->putString($entry->getPackId());
|
||||
$this->putString($entry->getPackVersion());
|
||||
$this->putLLong($entry->getPackSize());
|
||||
$this->putString(""); //TODO
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user