From 6a191b506933cc32c54db47784cf854fb02db0c1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 13 Jul 2017 19:59:01 +0100 Subject: [PATCH] Remove useless condition --- src/pocketmine/network/mcpe/RakLibInterface.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/network/mcpe/RakLibInterface.php b/src/pocketmine/network/mcpe/RakLibInterface.php index 20882e28e..882819992 100644 --- a/src/pocketmine/network/mcpe/RakLibInterface.php +++ b/src/pocketmine/network/mcpe/RakLibInterface.php @@ -143,9 +143,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{ $logger->debug("Packet " . (isset($pk) ? get_class($pk) : "unknown") . " 0x" . bin2hex($packet->buffer)); $logger->logException($e); - if(isset($this->players[$identifier])){ - $this->interface->blockAddress($this->players[$identifier]->getAddress(), 5); - } + $this->interface->blockAddress($this->players[$identifier]->getAddress(), 5); } } }