summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pilantern.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/pilantern.lua b/pilantern.lua
index c156934..83eabe9 100644
--- a/pilantern.lua
+++ b/pilantern.lua
@@ -116,6 +116,7 @@ function celevator.pi.flash(pos,what)
end
function celevator.pi.settext(pos,text)
+ if not text then text = " --" end
if minetest.get_item_group(celevator.get_node(pos).name,"_celevator_pi") ~= 1 then return end
local meta = minetest.get_meta(pos)
if string.len(text) < 3 then