mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed #1584 duplicated death messages
This commit is contained in:
@ -84,6 +84,9 @@ abstract class Living extends Entity implements Damageable{
|
||||
}
|
||||
|
||||
public function kill(){
|
||||
if($this->dead){
|
||||
return;
|
||||
}
|
||||
parent::kill();
|
||||
$this->server->getPluginManager()->callEvent($ev = new EntityDeathEvent($this, $this->getDrops()));
|
||||
foreach($ev->getDrops() as $item){
|
||||
|
Reference in New Issue
Block a user