mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
Fix
This commit is contained in:
parent
533c179622
commit
86469a1031
1 changed files with 3 additions and 2 deletions
|
|
@ -873,6 +873,9 @@ class Player{
|
||||||
if($p["counter"] > $this->receiveCount){
|
if($p["counter"] > $this->receiveCount){
|
||||||
$this->receiveCount = $p["counter"];
|
$this->receiveCount = $p["counter"];
|
||||||
}elseif($p["counter"] !== 0){
|
}elseif($p["counter"] !== 0){
|
||||||
|
if(($p["counter"] - $this->receiveCount) > 16){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
switch($p["id"]){
|
switch($p["id"]){
|
||||||
case 0x01:
|
case 0x01:
|
||||||
case MC_PONG:
|
case MC_PONG:
|
||||||
|
|
@ -883,8 +886,6 @@ class Player{
|
||||||
case MC_SET_HEALTH:
|
case MC_SET_HEALTH:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}elseif(($p["counter"] - $this->receiveCount) > 16){
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->handleDataPacket($p["id"], $p);
|
$this->handleDataPacket($p["id"], $p);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue