Fix control flow.

This commit is contained in:
Anna Rose 2025-02-08 21:20:59 -05:00
parent dcc6a17c2c
commit cb759ccdc2

View File

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