diff --git a/KerbalJointReinforcement/KerbalJointReinforcement/KJRManager.cs b/KerbalJointReinforcement/KerbalJointReinforcement/KJRManager.cs index 440ec86..20f87a4 100644 --- a/KerbalJointReinforcement/KerbalJointReinforcement/KJRManager.cs +++ b/KerbalJointReinforcement/KerbalJointReinforcement/KJRManager.cs @@ -294,7 +294,7 @@ private void RunVesselJointUpdateFunction(Vessel v) } } - if (KJRJointUtils.settings.reinforceDecouplersFurther && IsValidDecoupler(p)) + if (KJRJointUtils.settings.reinforceDecouplersFurther && p.isDecoupler(out _)) { MultiJointReinforceDecoupler(p); continue; @@ -324,11 +324,6 @@ private void RunVesselJointUpdateFunction(Vessel v) if (KJRJointUtils.settings.debug) Debug.Log($"[KJR] RunVesselJointUpdateFunction finished in {sw.Elapsed.TotalMilliseconds}ms"); } - private bool IsValidDecoupler(Part p) - { - return p.Modules.Contains() || p.Modules.Contains(); - } - public void FixedUpdate() { if (FlightGlobals.ready && FlightGlobals.Vessels != null)