summaryrefslogtreecommitdiff
path: root/digidisplay
diff options
context:
space:
mode:
Diffstat (limited to 'digidisplay')
-rw-r--r--digidisplay/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/digidisplay/init.lua b/digidisplay/init.lua
index 5096950..606842a 100644
--- a/digidisplay/init.lua
+++ b/digidisplay/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