Fixed unrelated packet loss kicks

This commit is contained in:
Shoghi Cervantes 2013-06-04 10:06:21 +02:00
parent e01a3e6811
commit 0c7c36cc03
2 changed files with 3 additions and 2 deletions

View File

@ -1445,7 +1445,6 @@ class Player{
public function send($pid, $data = array(), $raw = false){
if($this->connected === true){
$this->server->send($pid, $data, $raw, $this->ip, $this->port);
++$this->packetStats[0];
}
}
@ -1486,6 +1485,7 @@ class Player{
0x50, //0b01010000
$data,
));
++$this->packetStats[0];
}
}
@ -1510,6 +1510,7 @@ class Player{
$pid,
$data,
));
++$this->packetStats[0];
}
public function dataPacket($id, $data = array()){

View File

@ -35,7 +35,7 @@ define("VIEWER", 3);
//Players
define("PLAYER_RECOVERY_BUFFER", 2048);
define("PLAYER_MAX_PACKET_LOSS", 0.40);
define("PLAYER_MAX_PACKET_LOSS", 0.20);
//Block Updates