mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
readded limit to resendQueue, MovePlayerPacket will be sent after AddPlayerPacket to fix AddPlayerPacket bug
This commit is contained in:
parent
31ae786748
commit
00c03d8bf0
2 changed files with 19 additions and 11 deletions
|
|
@ -1621,7 +1621,9 @@ class Player{
|
|||
}
|
||||
|
||||
if(($resendCnt = count($this->resendQueue)) > 0){
|
||||
$limit = 25;
|
||||
foreach($this->resendQueue as $count => $data){
|
||||
if(!--$limit) break;
|
||||
unset($this->resendQueue[$count]);
|
||||
$this->packetStats[1]++;
|
||||
$this->lag[] = $time - $data->sendtime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue