Don't allow cycling an already cycling airlock.
This commit is contained in:
parent
536b4a5ea5
commit
d5775df58a
|
@ -140,6 +140,7 @@ namespace IngameScript
|
||||||
|
|
||||||
public IEnumerator<bool> CycleAirlock()
|
public IEnumerator<bool> CycleAirlock()
|
||||||
{
|
{
|
||||||
|
if (Cycling) yield break;
|
||||||
Cycling = true;
|
Cycling = true;
|
||||||
setLights(AirlockLightState.Cycling);
|
setLights(AirlockLightState.Cycling);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user