Skip to content

Commit

Permalink
Fix LogCareerFailure failing outside Career mode
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Sep 3, 2023
1 parent 8c0fab1 commit 37504eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TestFlightCore/TestFlightCore/TestFlight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ internal void Log(string message)

internal void LogCareerFailure(Vessel vessel, string part, string failureType)
{
if (!rp1Available || !careerLogging)
if (!rp1Available || !careerLogging || HighLogic.CurrentGame?.Mode != Game.Modes.CAREER)
{
Log("Unable to log career failure. RP1 or Career Logging is unavailable");
return;
Expand Down

0 comments on commit 37504eb

Please sign in to comment.