Fixed wrong encoding of ResourcePacksInfoPacket

This commit is contained in:
Dylan K. Taylor 2017-02-24 12:38:02 +00:00
parent 5eab956da6
commit dc7b5b14d5

View File

@ -47,13 +47,13 @@ class ResourcePacksInfoPacket extends DataPacket{
foreach($this->behaviorPackEntries as $entry){
$this->putString($entry->getPackId());
$this->putString($entry->getVersion());
$this->putLong($entry->getPackSize());
$this->putLLong($entry->getPackSize());
}
$this->putShort(count($this->resourcePackEntries));
foreach($this->resourcePackEntries as $entry){
$this->putString($entry->getPackId());
$this->putString($entry->getVersion());
$this->putLong($entry->getPackSize());
$this->putLLong($entry->getPackSize());
}
}
}