diff --git a/HKMP/Game/GameManager.cs b/HKMP/Game/GameManager.cs index 4a29756..4d53dbf 100644 --- a/HKMP/Game/GameManager.cs +++ b/HKMP/Game/GameManager.cs @@ -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,