Skip to content

Commit

Permalink
Fix TL display in sandbox (#19)
Browse files Browse the repository at this point in the history
Don't bother to explicitly define TL in sandbox. Instead rely on upgrades being automatically unlocked, preventing TL slider from being stuck at 7
  • Loading branch information
Capkirk123 authored Aug 13, 2023
1 parent 5ffb9c8 commit 734e26b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/ROLib/Modules/ModuleROSolar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ private void SetUIVisibleFields()

private void SetMaxTechLevel()
{
if (HighLogic.CurrentGame.Mode != Game.Modes.CAREER)
maxTechLevel = 7;

(Fields[nameof(TechLevel)].uiControlEditor as UI_FloatRange).maxValue = maxTechLevel;
if (HighLogic.LoadedSceneIsEditor && TechLevel < 0)
Expand Down

0 comments on commit 734e26b

Please sign in to comment.