mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
entity.death event from 0.8
This commit is contained in:
parent
e1368ce4a1
commit
ac1a3b67fb
1 changed files with 1 additions and 0 deletions
|
|
@ -1387,6 +1387,7 @@ class Entity extends Position
|
|||
}
|
||||
|
||||
public function makeDead($cause){
|
||||
if($this->server->api->dhandle("entity.death", ["entity" => $this, "cause" => $cause]) === false) return false;
|
||||
$this->spawnDrops();
|
||||
$this->air = 200;
|
||||
$this->fire = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue