Skip to content

Commit

Permalink
Fix one more throw
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Sep 5, 2022
1 parent e599329 commit 977c7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KerbalKonstructs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ internal bool enableRT
{
if (RemoteTechAddon.isInstalled)
{
return HighLogic.CurrentGame.Parameters.CustomParams<KKCustomParameters0>().enableRT;
return HighLogic.CurrentGame?.Parameters?.CustomParams<KKCustomParameters0>()?.enableRT == true;
}
else
{
Expand Down

0 comments on commit 977c7b3

Please sign in to comment.