diff options
author | cheapie <no-email-for-you@example.com> | 2018-10-10 17:17:06 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2018-10-10 17:17:06 -0500 |
commit | d357ceb88852bc50b82cb404efaf4452472ca10b (patch) | |
tree | 939196c02589275e832c066d7b6e1d8a04daebd4 | |
parent | eda5f628a166bcac7fdd86b7b8566ed250779589 (diff) | |
download | digidisplay-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.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |