From 97ccc6e880b562eceb048352e2a0ad7eacaf0a5f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 24 Mar 2019 18:31:32 +0000 Subject: [PATCH] Network: Don't ignore retval of raw handlers --- src/pocketmine/network/Network.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pocketmine/network/Network.php b/src/pocketmine/network/Network.php index d4276ee34a..c793ca82b7 100644 --- a/src/pocketmine/network/Network.php +++ b/src/pocketmine/network/Network.php @@ -237,9 +237,8 @@ class Network{ $handled = false; foreach($this->rawPacketHandlers as $handler){ if(preg_match($handler->getPattern(), $packet) === 1){ - $handled = true; try{ - $handler->handle($interface, $address, $port, $packet); + $handled = $handler->handle($interface, $address, $port, $packet); }catch(BadPacketException $e){ $this->logger->error("Bad raw packet from /$address:$port: " . $e->getMessage()); $this->blockAddress($address, 600);