mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Raised buffer time
This commit is contained in:
parent
5e44ecf63b
commit
57df6e61aa
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ class Player{
|
|||
private $server;
|
||||
private $queue = array();
|
||||
private $buffer = "";
|
||||
private $lastBuffer = 0;
|
||||
private $nextBuffer = 0;
|
||||
private $recovery = array();
|
||||
private $evid = array();
|
||||
public $lastMovement = 0;
|
||||
|
|
@ -155,7 +155,7 @@ class Player{
|
|||
if($time > $this->timeout){
|
||||
$this->close("timeout");
|
||||
}else{
|
||||
if($this->lastBuffer <= $time and strlen($this->buffer) > 0){
|
||||
if($this->nextBuffer <= $time and strlen($this->buffer) > 0){
|
||||
$this->sendBuffer();
|
||||
}
|
||||
|
||||
|
|
@ -1029,7 +1029,7 @@ class Player{
|
|||
}
|
||||
|
||||
$this->buffer = "";
|
||||
$this->lastBuffer = microtime(true) + 0.05;
|
||||
$this->nextBuffer = microtime(true) + 0.1;
|
||||
}
|
||||
|
||||
public function directDataPacket($id, $data){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue