fixed negative size

This commit is contained in:
GameHerobrine 2023-10-07 06:05:30 +03:00
parent 833b04e0fc
commit 97a3f1b326

View file

@ -294,6 +294,7 @@ class Player{
$sendtime = microtime(true);
$size = $this->MTU - 34;
if($size <= 0) return false;
$buffer = str_split($packet->buffer, $size);
$bigCnt = $this->bigCnt;
$this->bigCnt = ($this->bigCnt + 1) % 0x10000;