Living: Remove redundant isAlive() check from kill()

This just causes unexpected bugs, and hides actual bugs.
This commit is contained in:
Dylan K. Taylor 2018-02-13 12:47:06 +00:00
parent 8a4f6eb6c2
commit 4a85311c5f

View File

@ -536,9 +536,6 @@ abstract class Living extends Entity implements Damageable{
}
public function kill(){
if(!$this->isAlive()){
return;
}
parent::kill();
$this->onDeath();
}