summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2018-10-10 17:17:06 -0500
committercheapie <no-email-for-you@example.com>2018-10-10 17:17:06 -0500
commitd357ceb88852bc50b82cb404efaf4452472ca10b (patch)
tree939196c02589275e832c066d7b6e1d8a04daebd4
parenteda5f628a166bcac7fdd86b7b8566ed250779589 (diff)
downloaddigidisplay-d357ceb88852bc50b82cb404efaf4452472ca10b.tar
digidisplay-d357ceb88852bc50b82cb404efaf4452472ca10b.tar.gz
digidisplay-d357ceb88852bc50b82cb404efaf4452472ca10b.tar.bz2
digidisplay-d357ceb88852bc50b82cb404efaf4452472ca10b.tar.xz
digidisplay-d357ceb88852bc50b82cb404efaf4452472ca10b.zip
Fix an admittedly somewhat mysterious crash
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 5096950..606842a 100644
--- a/init.lua
+++ b/init.lua
@@ -1,7 +1,7 @@
local function removeEntity(pos)
local entitiesNearby = minetest.get_objects_inside_radius(pos,0.5)
for _,i in pairs(entitiesNearby) do
- if i:get_luaentity().name == "digidisplay:text" then
+ if i:get_luaentity() and i:get_luaentity().name == "digidisplay:text" then
i:remove()
end
end