mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
fixed negative size
This commit is contained in:
parent
833b04e0fc
commit
97a3f1b326
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ class Player{
|
||||||
$sendtime = microtime(true);
|
$sendtime = microtime(true);
|
||||||
|
|
||||||
$size = $this->MTU - 34;
|
$size = $this->MTU - 34;
|
||||||
|
if($size <= 0) return false;
|
||||||
$buffer = str_split($packet->buffer, $size);
|
$buffer = str_split($packet->buffer, $size);
|
||||||
$bigCnt = $this->bigCnt;
|
$bigCnt = $this->bigCnt;
|
||||||
$this->bigCnt = ($this->bigCnt + 1) % 0x10000;
|
$this->bigCnt = ($this->bigCnt + 1) % 0x10000;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue