mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fixed Packet of Death
This commit is contained in:
parent
5ad72b4f49
commit
bd0d708274
4 changed files with 18 additions and 7 deletions
|
|
@ -65,6 +65,9 @@ class MinecraftInterface{
|
|||
if($len === false){
|
||||
return $pk;
|
||||
}
|
||||
echo "received packet [".strtoupper(bin2hex(Utils::writeInt(crc32($buf))))."]".PHP_EOL;
|
||||
global $lastPacketSent;
|
||||
$lastPacketSent = bin2hex($buf);
|
||||
$this->bandwidth[0] += $len;
|
||||
$this->parsePacket($buf, $source, $port);
|
||||
return ($pk !== false ? $pk : $this->popPacket());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue