Skip to content

Commit

Permalink
Auto-disable trackingservomoudule if no servo
Browse files Browse the repository at this point in the history
  • Loading branch information
602p committed Dec 10, 2014
1 parent f716ec6 commit 3f8a2d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Entropy/Entropy/FailureModules/Solar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public override bool PartIsActive()
protected override void DI_Start(StartState state)
{
panel = this.part.Modules.OfType<ModuleDeployableSolarPanel>().Single();
if (!panel.sunTracking) {
this.enabled = false; //Disable this if it's not tracking
}
}

protected override bool DI_FailBegin()
Expand Down

0 comments on commit 3f8a2d3

Please sign in to comment.