mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Rename Living->callDeathEvent() to Living->onDeath()
This commit is contained in:
@ -441,10 +441,10 @@ abstract class Living extends Entity implements Damageable{
|
||||
return;
|
||||
}
|
||||
parent::kill();
|
||||
$this->callDeathEvent();
|
||||
$this->onDeath();
|
||||
}
|
||||
|
||||
protected function callDeathEvent(){
|
||||
protected function onDeath(){
|
||||
$this->server->getPluginManager()->callEvent($ev = new EntityDeathEvent($this, $this->getDrops()));
|
||||
foreach($ev->getDrops() as $item){
|
||||
$this->getLevel()->dropItem($this, $item);
|
||||
|
Reference in New Issue
Block a user