diff options
author | Jeija <norrepli@gmail.com> | 2012-12-21 16:22:25 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-12-21 16:22:25 +0100 |
commit | 23bebfc054008d2b6796e3f10d3bc67bee8b31ed (patch) | |
tree | 72b8a71d75b16cf0a8b5d82758d3269beedf50d9 /mesecons_extrawires | |
parent | 9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125 (diff) | |
parent | 973a9c650f72ce694bd31dfbc5d6030751ff7c05 (diff) |
Merge branch 'master' into nextgen
Conflicts:
mesecons/internal.lua
mesecons/wires.lua
mesecons_pistons/init.lua
Diffstat (limited to 'mesecons_extrawires')
-rw-r--r-- | mesecons_extrawires/vertical.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index 652205d..b21ccb7 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 @@ -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 |