From c6066a78c806fbda9c57d3cef1177b662b1619fb Mon Sep 17 00:00:00 2001 From: Falki <72734856+Falki-git@users.noreply.github.com> Date: Tue, 23 May 2023 00:13:21 +0200 Subject: [PATCH] Fix in-flight NRE spam when TF is disabled (#274) --- TestFlightAPI/TestFlightAPI/TestFlightAPI.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/TestFlightAPI/TestFlightAPI/TestFlightAPI.cs b/TestFlightAPI/TestFlightAPI/TestFlightAPI.cs index d8b82ab..e27fdb9 100644 --- a/TestFlightAPI/TestFlightAPI/TestFlightAPI.cs +++ b/TestFlightAPI/TestFlightAPI/TestFlightAPI.cs @@ -288,8 +288,6 @@ public static ITestFlightCore GetCore(Part part) ITestFlightCore core = null; if (part != null) core = part.FindModuleImplementing(); - if (core != null && !core.TestFlightEnabled) - core = null; Profiler.EndSample(); return core; }