mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29: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){
|
if($this->player !== false){
|
||||||
$this->server->api->dhandle("player.death", array("name" => $this->name, "cause" => $cause));
|
$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){
|
}elseif($this->health > 0){
|
||||||
$this->dead = false;
|
$this->dead = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue