mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
Fix
This commit is contained in:
@@ -873,6 +873,9 @@ class Player{
|
||||
if($p["counter"] > $this->receiveCount){
|
||||
$this->receiveCount = $p["counter"];
|
||||
}elseif($p["counter"] !== 0){
|
||||
if(($p["counter"] - $this->receiveCount) > 16){
|
||||
continue;
|
||||
}
|
||||
switch($p["id"]){
|
||||
case 0x01:
|
||||
case MC_PONG:
|
||||
@@ -883,8 +886,6 @@ class Player{
|
||||
case MC_SET_HEALTH:
|
||||
continue;
|
||||
}
|
||||
}elseif(($p["counter"] - $this->receiveCount) > 16){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$this->handleDataPacket($p["id"], $p);
|
||||
|
Reference in New Issue
Block a user