Skip to content

Commit 3197d27

Browse files
committed
FIX: Use proper name property for Body condition
1 parent e88d62c commit 3197d27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

0 Bytes
Binary file not shown.

source/Conditions/RealScienceCondition_Body.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public override EvalState Evaluate(Part part, float deltaTime)
6464
else
6565
tooltip += "\nThe following condition must be met.";
6666

67-
tooltip += String.Format("\nCraft sphere of influence equal to <b>{0}</b>. Currently <b>{1}</b>", body, part.vessel.mainBody.ToString().ToLower());
68-
if (part.vessel.mainBody.ToString().ToLower() == body)
67+
tooltip += String.Format("\nCraft sphere of influence equal to <b>{0}</b>. Currently <b>{1}</b>", body, part.vessel.mainBody.name.ToLower());
68+
if (part.vessel.mainBody.name.ToLower() == body)
6969
valid = true;
7070

7171
if (!restriction)

0 commit comments

Comments
 (0)