Add comment

This commit is contained in:
Jude Melton-Houghton 2022-11-21 08:20:51 -05:00
parent 2862544a75
commit 4069b2e52e
1 changed files with 1 additions and 0 deletions

View File

@ -542,6 +542,7 @@ function mesecon.turnoff(pos, link)
end
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
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