mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-24 09:20:18 +01:00
Fix addPosRule without mesecon: in vertical wires (issue #62)
This commit is contained in:
parent
9dee0c020c
commit
0aab812487
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user