Skip to content

Commit

Permalink
Fix server settings for locally hosted server not being saved
Browse files Browse the repository at this point in the history
  • Loading branch information
Extremelyd1 committed Oct 4, 2023
1 parent 64730e0 commit 4b53d47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HKMP/Game/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public GameManager(ModSettings modSettings) {
var netServer = new NetServer(packetManager);

var clientServerSettings = new ServerSettings();
var serverServerSettings = modSettings.ServerSettings ?? new ServerSettings();
if (modSettings.ServerSettings == null) {
modSettings.ServerSettings = new ServerSettings();
}
var serverServerSettings = modSettings.ServerSettings;

var uiManager = new UiManager(
clientServerSettings,
Expand Down

0 comments on commit 4b53d47

Please sign in to comment.