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