From a0764085f26d3cd105123f4840041ad55a88842b Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 20 Jun 2015 20:44:49 -0400 Subject: [PATCH] localize a variable --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 337904b..97bbd68 100644 --- a/init.lua +++ b/init.lua @@ -52,7 +52,7 @@ local on_digiline_receive_deca = function(pos, node, channel, msg) local meta = minetest.get_meta(pos) local setchan = meta:get_string("channel") if setchan ~= channel then return end - tubenum = string.gsub(node.name, "nixie_tubes:decatron_", "") + local tubenum = string.gsub(node.name, "nixie_tubes:decatron_", "") local num = tonumber(msg) if msg == "off" or (num and (num >= 0 and num <= 9)) then