Fixed #1584 duplicated death messages

This commit is contained in:
Shoghi Cervantes
2014-07-09 20:25:40 +02:00
parent 1f882f42d3
commit 9604907566
3 changed files with 9 additions and 0 deletions

View File

@ -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){