Skip to content

Commit

Permalink
Update GuiConfigUtils.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Jul 15, 2024
1 parent 0e32d52 commit 48184ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ColorMC.Gui/Utils/GuiConfigUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public static bool Load(string local, bool quit = false)
Config.ServerCustom = MakeServerCustomConfig();
save = true;
}
if (Config.ServerCustom.LockLogins == null)
{
Config.ServerCustom.LockLogins = [];
save = true;
}
if (Config.Render == null
|| Config.Render.Windows == null
|| Config.Render.X11 == null)
Expand Down Expand Up @@ -211,7 +216,8 @@ public static ServerCustomSetting MakeServerCustomConfig()
{
MotdColor = "White",
MotdBackColor = "Black",
Volume = 30
Volume = 30,
LockLogins = []
};
}

Expand Down

0 comments on commit 48184ef

Please sign in to comment.