From 4069b2e52e2ba62b0d0649fbcf88ea4273f8e3f4 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Mon, 21 Nov 2022 08:20:51 -0500 Subject: [PATCH] Add comment --- mesecons/internal.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mesecons/internal.lua b/mesecons/internal.lua index 93d3cfd..a28c430 100644 --- a/mesecons/internal.lua +++ b/mesecons/internal.lua @@ -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