Fix server discovery issue on main "Join Game" Screen

This commit is contained in:
Bishbash777
2021-04-25 12:36:46 +01:00
committed by GitHub
parent 5445459dc7
commit 7ea1a523e1

View File

@@ -164,14 +164,15 @@ namespace Torch
_log.Info("Initializing UGC services");
IMyGameService service;
IMyUGCService serviceInstance;
var aggregator = new MyServerDiscoveryAggregator();
if (TorchBase.Instance.Config.UgcServiceType == UGCServiceType.Steam)
{
service = MySteamGameService.Create(dedicated, _appSteamId);
serviceInstance = MySteamUgcService.Create(_appSteamId, service);
MySteamGameService.InitNetworking(dedicated,
service,
dedicated ? MyPerServerSettings.GameDSName : MyPerServerSettings.GameNameSafe,
(MyServerDiscoveryAggregator) MyGameService.ServerDiscovery);
"Space Engineers",
aggregator);
}
else
{