From cf83143bbd955a38151a6d5f5825ad2bc25cfaad Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 1 Feb 2017 18:13:50 +0000 Subject: [PATCH] Silence unread buffer assertion on incompatible protocol --- src/pocketmine/network/protocol/LoginPacket.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/network/protocol/LoginPacket.php b/src/pocketmine/network/protocol/LoginPacket.php index d8487eae5..e293b135a 100644 --- a/src/pocketmine/network/protocol/LoginPacket.php +++ b/src/pocketmine/network/protocol/LoginPacket.php @@ -44,6 +44,7 @@ class LoginPacket extends DataPacket{ $this->protocol = $this->getInt(); if($this->protocol !== Info::CURRENT_PROTOCOL){ + $this->buffer = null; return; //Do not attempt to decode for non-accepted protocols }