From 2ca7e3825b5c09f1cc628a15f652c512993a7993 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 10 Jun 2015 13:54:13 -0400 Subject: [PATCH] fix my fix :P --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c2f3dbc..4432611 100644 --- a/init.lua +++ b/init.lua @@ -41,8 +41,8 @@ local on_digiline_receive = function(pos, node, channel, msg) local meta = minetest.get_meta(pos) local setchan = meta:get_string("channel") if setchan ~= channel then return end - local num = tonumber(msg) or 0 - if msg == "colon" or msg == "period" or msg == "off" or (num >= 0 and num <= 9) then + local num = tonumber(msg) + if msg == "colon" or msg == "period" or msg == "off" or (num and (num >= 0 and num <= 9)) then minetest.swap_node(pos, { name = "nixie_tubes:tube_"..msg, param2 = node.param2}) end end