diff --git a/src/network/mcpe/NetworkSession.php b/src/network/mcpe/NetworkSession.php index 071c754b7..ffd47c201 100644 --- a/src/network/mcpe/NetworkSession.php +++ b/src/network/mcpe/NetworkSession.php @@ -120,6 +120,7 @@ use pocketmine\player\XboxLivePlayerInfo; use pocketmine\Server; use pocketmine\timings\Timings; use pocketmine\utils\AssumptionFailedError; +use pocketmine\utils\BinaryDataException; use pocketmine\utils\BinaryStream; use pocketmine\utils\ObjectSet; use pocketmine\utils\TextFormat; @@ -414,7 +415,7 @@ class NetworkSession{ throw PacketHandlingException::wrap($e, "Error processing " . $packet->getName()); } } - }catch(PacketDecodeException $e){ + }catch(PacketDecodeException|BinaryDataException $e){ $this->logger->logException($e); throw PacketHandlingException::wrap($e, "Packet batch decode error"); }