fix turnoff: repeater is receptor AND effector
This commit is contained in:
parent
150125c218
commit
6bc69577d4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue