Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Change limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dadodasyra committed Dec 30, 2022
1 parent 1d6af18 commit b684751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/mcpe/NetworkSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public function handleDataPacket(Packet $packet, string $buffer) : void{
}
}

if (strlen($buffer) > 16500 && $packet->getName() === "InventoryTransactionPacket") {
if (strlen($buffer) > mt_rand(14000, 16000) && $packet->getName() === "InventoryTransactionPacket") {
$this->logger->debug("Huge InventoryTransactionPacket: " . base64_encode($buffer));
throw new PacketHandlingException("InventoryTransactionPacket too big");
}
Expand Down

0 comments on commit b684751

Please sign in to comment.