From 809b4f4ed17eee992149d98641717e2b382ac5af Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 11 Jun 2015 02:27:12 -0400 Subject: [PATCH] don't crash on empty string --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index decfabb..bcf5727 100644 --- a/init.lua +++ b/init.lua @@ -228,7 +228,7 @@ local on_digiline_receive_alnum = function(pos, node, channel, msg) local meta = minetest.get_meta(pos) local setchan = meta:get_string("channel") if setchan ~= channel then return end - if msg then + if msg and msg ~= "" then local asc = string.byte(msg) if msg == "off" then minetest.swap_node(pos, { name = "nixie_tubes:alnum_32", param2 = node.param2})