mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
fixup some ResourcePack TODOs
This commit is contained in:
parent
8d988af7db
commit
08d8adae5b
@ -65,14 +65,14 @@ class ResourcePackStackPacket extends DataPacket{
|
|||||||
foreach($this->behaviorPackStack as $entry){
|
foreach($this->behaviorPackStack as $entry){
|
||||||
$this->putString($entry->getPackId());
|
$this->putString($entry->getPackId());
|
||||||
$this->putString($entry->getPackVersion());
|
$this->putString($entry->getPackVersion());
|
||||||
$this->putString(""); //TODO
|
$this->putString(""); //TODO: subpack name
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->putUnsignedVarInt(count($this->resourcePackStack));
|
$this->putUnsignedVarInt(count($this->resourcePackStack));
|
||||||
foreach($this->resourcePackStack as $entry){
|
foreach($this->resourcePackStack as $entry){
|
||||||
$this->putString($entry->getPackId());
|
$this->putString($entry->getPackId());
|
||||||
$this->putString($entry->getPackVersion());
|
$this->putString($entry->getPackVersion());
|
||||||
$this->putString(""); //TODO
|
$this->putString(""); //TODO: subpack name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,16 +68,16 @@ class ResourcePacksInfoPacket extends DataPacket{
|
|||||||
$this->putString($entry->getPackId());
|
$this->putString($entry->getPackId());
|
||||||
$this->putString($entry->getPackVersion());
|
$this->putString($entry->getPackVersion());
|
||||||
$this->putLLong($entry->getPackSize());
|
$this->putLLong($entry->getPackSize());
|
||||||
$this->putString(""); //TODO
|
$this->putString(""); //TODO: encryption key
|
||||||
$this->putString(""); //TODO
|
$this->putString(""); //TODO: subpack name
|
||||||
}
|
}
|
||||||
$this->putLShort(count($this->resourcePackEntries));
|
$this->putLShort(count($this->resourcePackEntries));
|
||||||
foreach($this->resourcePackEntries as $entry){
|
foreach($this->resourcePackEntries as $entry){
|
||||||
$this->putString($entry->getPackId());
|
$this->putString($entry->getPackId());
|
||||||
$this->putString($entry->getPackVersion());
|
$this->putString($entry->getPackVersion());
|
||||||
$this->putLLong($entry->getPackSize());
|
$this->putLLong($entry->getPackSize());
|
||||||
$this->putString(""); //TODO
|
$this->putString(""); //TODO: encryption key
|
||||||
$this->putString(""); //TODO
|
$this->putString(""); //TODO: subpack name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user