Bugfix, wires sometimes turned off for no reason

This commit is contained in:
Jeija 2012-12-21 16:04:19 +01:00
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