fix turnoff: repeater is receptor AND effector

This commit is contained in:
Henry Behrendt 2021-09-13 08:17:04 +02:00
parent 150125c218
commit 6bc69577d4
1 changed files with 4 additions and 2 deletions

View File

@ -569,14 +569,16 @@ function mesecon.turnoff(pos, link)
--return false --return false
end end
end end
elseif mesecon.is_effector(n.name) then end
if n and mesecon.is_effector(n.name) then
insert(signals, { insert(signals, {
pos = np, pos = np,
node = n, node = n,
link = r, link = r,
depth = depth depth = depth
}) })
elseif mesecon.is_conductor_on(n) and f.link.opaquespread then end
if mesecon.is_conductor_on(n) and f.link.opaquespread then
insert(frontiers, {pos = np, link = r}) insert(frontiers, {pos = np, link = r})
end end
for _, l in pairs(mesecon.rules_link_rule_all(fpos, r)) do for _, l in pairs(mesecon.rules_link_rule_all(fpos, r)) do