mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Packet lenght error
This commit is contained in:
parent
2266a14965
commit
7c25b8c614
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class Packet{
|
|||
break;
|
||||
case "customData":
|
||||
$reply = new CustomPacketHandler($this->data[$field]["id"], "", $this->data[$field], true);
|
||||
$this->addRaw(Utils::writeShort(strlen($reply->raw) << 3));
|
||||
$this->addRaw(Utils::writeShort((strlen($reply->raw) + 1) << 3));
|
||||
$this->addRaw(Utils::writeTriad($this->data[$field]["count"]));
|
||||
$this->addRaw(chr($this->data[$field]["id"]));
|
||||
$this->addRaw($reply->raw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue