mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Living: Remove redundant isAlive() check from kill()
This just causes unexpected bugs, and hides actual bugs.
This commit is contained in:
@ -536,9 +536,6 @@ abstract class Living extends Entity implements Damageable{
|
||||
}
|
||||
|
||||
public function kill(){
|
||||
if(!$this->isAlive()){
|
||||
return;
|
||||
}
|
||||
parent::kill();
|
||||
$this->onDeath();
|
||||
}
|
||||
|
Reference in New Issue
Block a user