don't crash on empty string

master
Vanessa Ezekowitz 2015-06-11 02:27:12 -04:00
parent cbcc268c72
commit 809b4f4ed1
1 changed files with 1 additions and 1 deletions

View File

@ -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})