diff options
author | sfan5 <sfan5@live.de> | 2017-01-15 11:53:49 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-01-15 11:53:49 +0100 |
commit | c2e3d7c4e58b2563e79aead60c6efedf27c786cf (patch) | |
tree | 12c0d4f0d9ca5e31aac900a7c0efbbfd56ed03bf /mesecons_delayer/init.lua | |
parent | 7415036f5b3e75e182bb3818b7e68718022319c1 (diff) |
Fix most of the namespace pollutions reported in #311
Diffstat (limited to 'mesecons_delayer/init.lua')
-rw-r--r-- | mesecons_delayer/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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", |