Skip to content

Commit

Permalink
Fix in-flight NRE spam when TF is disabled (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Falki-git authored May 22, 2023
1 parent 1957f56 commit c6066a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TestFlightAPI/TestFlightAPI/TestFlightAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ public static ITestFlightCore GetCore(Part part)
ITestFlightCore core = null;
if (part != null)
core = part.FindModuleImplementing<ITestFlightCore>();
if (core != null && !core.TestFlightEnabled)
core = null;
Profiler.EndSample();
return core;
}
Expand Down

0 comments on commit c6066a7

Please sign in to comment.