From ac1a3b67fbc87fdf0fb851f9815dfb87a352227d Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 22 Nov 2023 18:05:17 +0300 Subject: [PATCH] entity.death event from 0.8 --- src/entity/Entity.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 24a61f1e..4dd838a2 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -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;