mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Packet lenght error
This commit is contained in:
parent
2266a14965
commit
7c25b8c614
@ -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…
x
Reference in New Issue
Block a user