mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
fixup some ResourcePack TODOs
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user