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
end
end
elseif mesecon.is_effector(n.name) then
end
if n and mesecon.is_effector(n.name) then
insert(signals, {
pos = np,
node = n,
link = r,
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})
end
for _, l in pairs(mesecon.rules_link_rule_all(fpos, r)) do