Move SetupBasicGameInfo to initializer so it can be called before ui thread init

This commit is contained in:
2023-06-27 15:51:12 -04:00
parent e9a9e180a8
commit ed694ae95b
2 changed files with 3 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ using Microsoft.Extensions.Configuration;
using NLog;
using NLog.Targets;
using Sandbox.Engine.Utils;
using SpaceEngineers.Game;
using Torch.Utils;
using VRage.FileSystem;
@@ -103,7 +104,8 @@ namespace Torch.Server
}
#endif
SpaceEngineersGame.SetupBasicGameInfo();
SpaceEngineersGame.SetupPerGameSettings();
var uiThread = new Thread(() =>
{
var ui = new TorchUI(_server);