diff options
author | Jeija <norrepli@gmail.com> | 2016-02-14 21:00:37 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2016-02-14 21:00:37 +0100 |
commit | 7865d428348e64b4aa2877830fd97a283b0ae44e (patch) | |
tree | 20642b272930ab2d94042a800b9015dac6581715 /mesecons_extrawires | |
parent | 809192f353af2faeb779df85104d4d7ed8d8943d (diff) |
Always use minetest.set_node instead of minetest.add_node for consistency
Diffstat (limited to 'mesecons_extrawires')
-rw-r--r-- | mesecons_extrawires/vertical.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index b1d0405..91d8e6b 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -53,13 +53,13 @@ local vertical_updatepos = function (pos) local basename = "mesecons_extrawires:vertical_" if above and below then -- above and below: vertical mesecon - minetest.add_node(pos, {name = basename .. namestate}) + minetest.set_node(pos, {name = basename .. namestate}) elseif above and not below then -- above only: bottom - minetest.add_node(pos, {name = basename .. "bottom_" .. namestate}) + minetest.set_node(pos, {name = basename .. "bottom_" .. namestate}) elseif not above and below then -- below only: top - minetest.add_node(pos, {name = basename .. "top_" .. namestate}) + minetest.set_node(pos, {name = basename .. "top_" .. namestate}) else -- no vertical wire above, no vertical wire below: use bottom - minetest.add_node(pos, {name = basename .. "bottom_" .. namestate}) + minetest.set_node(pos, {name = basename .. "bottom_" .. namestate}) end mesecon.update_autoconnect(pos) end |