mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
Fast network fix
This commit is contained in:
parent
4b408675cf
commit
63933ed1fc
@ -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…
x
Reference in New Issue
Block a user