From b844712d48a8f1ed2dcbb0a6825b226dd69581f2 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 7 Sep 2016 19:39:29 +0100 Subject: [PATCH] added entity removal to on_die custom functions --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 833fa9d..f1ef42a 100644 --- a/api.lua +++ b/api.lua @@ -361,7 +361,7 @@ function check_for_death(self) if self.on_die then self.on_die(self, pos) - +self.object:remove() return true end