forked from Mirrorlandia_minetest/mesecons
Bugfix, wires sometimes turned off for no reason
This commit is contained in:
parent
f114cb8ddc
commit
9019a4aff7
@ -93,7 +93,7 @@ function mesecon:receptor_off(pos, rules)
|
||||
for _, rule in ipairs(rules) do
|
||||
local np = mesecon:addPosRule(pos, rule)
|
||||
local link, rulename = mesecon:rules_link(pos, np, rules)
|
||||
if link then
|
||||
if link and not mesecon:connected_to_receptor(np) then
|
||||
mesecon:turnoff(np, rulename)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user