mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Fixed unrelated packet loss kicks
This commit is contained in:
parent
e01a3e6811
commit
0c7c36cc03
@ -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()){
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user