mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Raised buffer time
This commit is contained in:
parent
5e44ecf63b
commit
57df6e61aa
@ -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…
x
Reference in New Issue
Block a user