mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Entity death status
This commit is contained in:
parent
fe7138b21e
commit
e1cf3cc25e
1 changed files with 1 additions and 0 deletions
|
|
@ -361,6 +361,7 @@ class Entity extends stdClass{
|
|||
if($this->player !== false){
|
||||
$this->server->api->dhandle("player.death", array("name" => $this->name, "cause" => $cause));
|
||||
}
|
||||
$this->server->api->dhandle("entity.event", array("entity" => $this, "event" => 3)); //Entity dead
|
||||
}elseif($this->health > 0){
|
||||
$this->dead = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue