summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-09-07 19:39:29 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-09-07 19:39:29 +0100
commitb844712d48a8f1ed2dcbb0a6825b226dd69581f2 (patch)
treeabbddd9fbe3084381d8dc28867123fb37bd06b1e
parent5158bf31239c07595e1197ca19448ca4bdb26732 (diff)
added entity removal to on_die custom functions
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
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