Add comment
This commit is contained in:
parent
2862544a75
commit
4069b2e52e
|
@ -542,6 +542,7 @@ function mesecon.turnoff(pos, link)
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, sig in ipairs(signals) do
|
for _, sig in ipairs(signals) do
|
||||||
|
-- If sig.depth is 1, it has not yet been checked that the power source is actually off.
|
||||||
if sig.depth > 1 or not mesecon.is_powered(sig.pos, sig.link) then
|
if sig.depth > 1 or not mesecon.is_powered(sig.pos, sig.link) then
|
||||||
mesecon.changesignal(sig.pos, sig.node, sig.link, mesecon.state.off, sig.depth)
|
mesecon.changesignal(sig.pos, sig.node, sig.link, mesecon.state.off, sig.depth)
|
||||||
if mesecon.is_effector_on(sig.node.name) and not mesecon.is_powered(sig.pos) then
|
if mesecon.is_effector_on(sig.node.name) and not mesecon.is_powered(sig.pos) then
|
||||||
|
|
Loading…
Reference in New Issue