mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fast network fix
This commit is contained in:
parent
4b408675cf
commit
63933ed1fc
1 changed files with 4 additions and 2 deletions
|
|
@ -890,8 +890,6 @@ class Player{
|
|||
}elseif($diff === 1){
|
||||
$this->counter[1] = $data[0];
|
||||
++$this->packetStats[0];
|
||||
}else{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1539,6 +1537,10 @@ class Player{
|
|||
$d = $this->queue[$this->counter[1] + 1];
|
||||
unset($this->queue[$this->counter[1] + 1]);
|
||||
$this->handle($d["pid"], $d);
|
||||
}elseif(count($this->queue) > 25){
|
||||
$q = array_shift($this->queue);
|
||||
$this->counter[1] = $q[0];
|
||||
$this->handle($q["pid"], $q);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue