Skip to content

Commit

Permalink
simplified config related code
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmxyz committed Jun 11, 2023
1 parent 1621928 commit 4e19973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NeosMassImportPacker/NeosMassImportPackerMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class NeosMassImportPackerMod : NeosMod

private static NeosMassImportPackerMod Instance;

internal static float MaxGap => Instance?.GetConfiguration()?.GetValue(KEY_MAX_GAP) ?? 10;
internal static bool PersistUI => !(Instance?.GetConfiguration()?.GetValue(KEY_NON_PERSISTENT_UI) ?? false);
internal static float MaxGap => Instance.GetConfiguration().GetValue(KEY_MAX_GAP);
internal static bool PersistUI => !Instance.GetConfiguration().GetValue(KEY_NON_PERSISTENT_UI);

public override void OnEngineInit()
{
Expand Down

0 comments on commit 4e19973

Please sign in to comment.