Skip to content

Commit

Permalink
Update ModuleToolingSSTUTank.cs
Browse files Browse the repository at this point in the history
Try to catch the 0.25x Tank with a catch all else statement since there shouldn't be any other possibilties.
  • Loading branch information
pap1723 authored Dec 12, 2018
1 parent 4ee4b05 commit e6367aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/Tooling/ModuleToolingSSTUTank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ protected override void GetDimensions(out float diam, out float len)
else if (coreStr.Contains("7-0")) { len = diam * 7.0f; }
else if (coreStr.Contains("7-5")) { len = diam * 7.5f; }
else if (coreStr.Contains("8-0")) { len = diam * 8.0f; }
else
{
Debug.LogError("[ModuleTooling]: Could not find SSTU size that was correct");
return;
}
else ( len = diam * 0.25f; }
Debug.Log($"[RP1-ModuleTooling]: SSTU Tank Size: Diameter = {diam}, Length = {len}");
}
else
Expand Down

0 comments on commit e6367aa

Please sign in to comment.