From 4a85311c5fcc6bdae17ec15982c766299a4a2bad Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 13 Feb 2018 12:47:06 +0000 Subject: [PATCH] Living: Remove redundant isAlive() check from kill() This just causes unexpected bugs, and hides actual bugs. --- src/pocketmine/entity/Living.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index b63a433ec..75e9ca735 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -536,9 +536,6 @@ abstract class Living extends Entity implements Damageable{ } public function kill(){ - if(!$this->isAlive()){ - return; - } parent::kill(); $this->onDeath(); }