mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
ResourcePackClientResponsePacket: fixed non-deterministic decoding
This commit is contained in:
parent
e34a444dde
commit
e755e1dc23
@ -44,6 +44,7 @@ class ResourcePackClientResponsePacket extends DataPacket{
|
|||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
$this->status = $this->getByte();
|
$this->status = $this->getByte();
|
||||||
$entryCount = $this->getLShort();
|
$entryCount = $this->getLShort();
|
||||||
|
$this->packIds = [];
|
||||||
while($entryCount-- > 0){
|
while($entryCount-- > 0){
|
||||||
$this->packIds[] = $this->getString();
|
$this->packIds[] = $this->getString();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user