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()