Skip to content

Commit

Permalink
Fix autostaging on shutdown engines
Browse files Browse the repository at this point in the history
Shutdown engines need to get autostaged through in order to avoid
having TF failed engines prevent autostaging.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Jun 6, 2021
1 parent cf342a8 commit 49b14a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MechJeb2/PartExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public static bool EngineHasFuel(this Part p)
{
PartModule m = p.Modules[i];
ModuleEngines eng = m as ModuleEngines;
if (eng != null) return !eng.getFlameoutState;

if (eng != null)
return !eng.getFlameoutState && !eng.engineShutdown;
}
return false;
}
Expand Down

0 comments on commit 49b14a1

Please sign in to comment.