From cb759ccdc2e532b285a6b0c6ecda1fda1c716c49 Mon Sep 17 00:00:00 2001 From: annabunches Date: Sat, 8 Feb 2025 21:20:59 -0500 Subject: [PATCH] Fix control flow. --- Airlock/Airlock.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Airlock/Airlock.cs b/Airlock/Airlock.cs index 8f15cc2..0be449d 100644 --- a/Airlock/Airlock.cs +++ b/Airlock/Airlock.cs @@ -185,7 +185,8 @@ namespace IngameScript if (!airVent.CanPressurize) { error("Airlock is not airtight."); - yield return false; + Cycling = false; + yield break; } pressurizeDepressurize(); @@ -214,6 +215,7 @@ namespace IngameScript setLights(AirlockLightState.Off); _console.Print("Cycling Complete."); + Cycling = false; } private void closeDoors()