mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +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){
|
public function send($pid, $data = array(), $raw = false){
|
||||||
if($this->connected === true){
|
if($this->connected === true){
|
||||||
$this->server->send($pid, $data, $raw, $this->ip, $this->port);
|
$this->server->send($pid, $data, $raw, $this->ip, $this->port);
|
||||||
++$this->packetStats[0];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1486,6 +1485,7 @@ class Player{
|
|||||||
0x50, //0b01010000
|
0x50, //0b01010000
|
||||||
$data,
|
$data,
|
||||||
));
|
));
|
||||||
|
++$this->packetStats[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1510,6 +1510,7 @@ class Player{
|
|||||||
$pid,
|
$pid,
|
||||||
$data,
|
$data,
|
||||||
));
|
));
|
||||||
|
++$this->packetStats[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function dataPacket($id, $data = array()){
|
public function dataPacket($id, $data = array()){
|
||||||
|
@ -35,7 +35,7 @@ define("VIEWER", 3);
|
|||||||
|
|
||||||
//Players
|
//Players
|
||||||
define("PLAYER_RECOVERY_BUFFER", 2048);
|
define("PLAYER_RECOVERY_BUFFER", 2048);
|
||||||
define("PLAYER_MAX_PACKET_LOSS", 0.40);
|
define("PLAYER_MAX_PACKET_LOSS", 0.20);
|
||||||
|
|
||||||
|
|
||||||
//Block Updates
|
//Block Updates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user