mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed ACK/NACK range reading
This commit is contained in:
parent
8a9e6426ca
commit
257b330a53
1 changed files with 6 additions and 1 deletions
|
|
@ -177,9 +177,14 @@ class Packet{
|
|||
$this->data[$field] = array();
|
||||
for($i = 0; $i < $cnt; ++$i){
|
||||
if(Utils::readBool($this->get(1)) === false){
|
||||
$start = Utils::readTriad(strrev($this->get(3)));
|
||||
$end = Utils::readTriad(strrev($this->get(3)));
|
||||
for($c = $start; $c <= $end; ++$c){
|
||||
$this->data[$field][] = $c;
|
||||
}
|
||||
}else{
|
||||
$this->data[$field][] = Utils::readTriad(strrev($this->get(3)));
|
||||
}
|
||||
$this->data[$field][] = Utils::readTriad(strrev($this->get(3)));
|
||||
}
|
||||
break;
|
||||
case 0x05:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue