From 3f8a2d39422f408aa87e972e811d5bcfebe2264c Mon Sep 17 00:00:00 2001 From: Louis Goessling Date: Wed, 10 Dec 2014 10:09:28 -0600 Subject: [PATCH] Auto-disable trackingservomoudule if no servo --- Entropy/Entropy/FailureModules/Solar.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Entropy/Entropy/FailureModules/Solar.cs b/Entropy/Entropy/FailureModules/Solar.cs index f80e8ab..25ed34b 100644 --- a/Entropy/Entropy/FailureModules/Solar.cs +++ b/Entropy/Entropy/FailureModules/Solar.cs @@ -30,6 +30,9 @@ public override bool PartIsActive() protected override void DI_Start(StartState state) { panel = this.part.Modules.OfType().Single(); + if (!panel.sunTracking) { + this.enabled = false; //Disable this if it's not tracking + } } protected override bool DI_FailBegin()