From c2e3d7c4e58b2563e79aead60c6efedf27c786cf Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 15 Jan 2017 11:53:49 +0100 Subject: Fix most of the namespace pollutions reported in #311 --- mesecons_delayer/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesecons_delayer') diff --git a/mesecons_delayer/init.lua b/mesecons_delayer/init.lua index da576ad..7c480c1 100644 --- a/mesecons_delayer/init.lua +++ b/mesecons_delayer/init.lua @@ -47,7 +47,8 @@ elseif i == 2 then delaytime = 0.3 elseif i == 3 then delaytime = 0.5 elseif i == 4 then delaytime = 1.0 end -boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab +local boxes = { + { -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab { -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator { -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 }, @@ -57,7 +58,8 @@ boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab { -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator { -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs - { 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }} + { 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 } +} minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { description = "Delayer", -- cgit v1.2.3