From 0aab812487480f2c644c882d5b010d7ef7644da6 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 16 Dec 2012 13:02:05 +0100 Subject: [PATCH 1/2] Fix addPosRule without mesecon: in vertical wires (issue #62) --- mesecons_extrawires/vertical.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index 64e6e80..c20415a 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -35,8 +35,8 @@ local brules = local vertical_updatepos = function (pos) local node = minetest.env:get_node(pos) if minetest.registered_nodes[node.name].is_vertical_conductor then - local node_above = minetest.env:get_node(addPosRule(pos, vrules[1])) - local node_below = minetest.env:get_node(addPosRule(pos, vrules[2])) + local node_above = minetest.env:get_node(mesecon:addPosRule(pos, vrules[1])) + local node_below = minetest.env:get_node(mesecon:addPosRule(pos, vrules[2])) local namestate = minetest.registered_nodes[node.name].vertical_conductor_state -- above and below: vertical mesecon From 13befe3bbab80faf62ad88188c26c7765e7a01a7 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 16 Dec 2012 19:03:46 +0100 Subject: [PATCH 2/2] Fix #62 (Hopefully this time) --- mesecons_extrawires/vertical.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index c20415a..9aaa163 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -64,10 +64,9 @@ local vertical_updatepos = function (pos) end local vertical_update = function (pos, node) - print("update") vertical_updatepos(pos) -- this one - vertical_updatepos(addPosRule(pos, vrules[1])) -- above - vertical_updatepos(addPosRule(pos, vrules[2])) -- below + vertical_updatepos(mesecon:addPosRule(pos, vrules[1])) -- above + vertical_updatepos(mesecon:addPosRule(pos, vrules[2])) -- below end -- Vertical wire