From b684751baac0b8b53ee7f08cc68c3495bb7d94fd Mon Sep 17 00:00:00 2001 From: dadodasyra Date: Fri, 30 Dec 2022 23:50:44 +0100 Subject: [PATCH] Change limit --- src/network/mcpe/NetworkSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/mcpe/NetworkSession.php b/src/network/mcpe/NetworkSession.php index f0ce942b0be..7a2c6fd6011 100644 --- a/src/network/mcpe/NetworkSession.php +++ b/src/network/mcpe/NetworkSession.php @@ -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"); }