fixup some ResourcePack TODOs

This commit is contained in:
Dylan K. Taylor 2018-04-07 13:09:44 +01:00
parent 8d988af7db
commit 08d8adae5b
2 changed files with 6 additions and 6 deletions

View File

@ -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
} }
} }

View File

@ -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
} }
} }