ResourcePackClientResponsePacket: fixed non-deterministic decoding

This commit is contained in:
Dylan K. Taylor 2021-02-27 01:07:58 +00:00
parent e34a444dde
commit e755e1dc23
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -44,6 +44,7 @@ class ResourcePackClientResponsePacket extends DataPacket{
protected function decodePayload(){
$this->status = $this->getByte();
$entryCount = $this->getLShort();
$this->packIds = [];
while($entryCount-- > 0){
$this->packIds[] = $this->getString();
}