Minor fixes. Fixed game not pausing in offline mode, and possible fix for specific mods using script data

This commit is contained in:
Garrett
2024-07-17 20:30:12 -05:00
parent 3175a6244a
commit 21ac7c4733
3 changed files with 25 additions and 8 deletions

View File

@@ -162,8 +162,10 @@ namespace SeamlessClient
public void Update()
{
allComps.ForEach(x => x.Update());
if (MyAPIGateway.Multiplayer == null)
//All this crap needs to be cleaned
if (MyAPIGateway.Multiplayer == null || MyAPIGateway.Multiplayer.MyId == MyAPIGateway.Multiplayer.ServerId)
{
isSeamlessServer = false;
return;
@@ -176,11 +178,6 @@ namespace SeamlessClient
Initialized = true;
}
IMyGameServer server = MyServiceManager.Instance.GetService<IMyGameServer>();
MySandboxGame.PausePop();
}