fix for cross-play update

This commit is contained in:
LTP
2021-02-11 23:15:46 +07:00
parent 8f30b7605b
commit e5cb3e5ae0
6 changed files with 33 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
using Sandbox.Engine.Networking;
using VRage.Game;
namespace Torch.Utils
{
public static class ModItemUtils
{
public static MyObjectBuilder_Checkpoint.ModItem Create(ulong modId)
{
var serviceName = "Steam";
if (MyGameService.IsOnline)
serviceName = MyGameService.GetDefaultUGC().ServiceName;
return new MyObjectBuilder_Checkpoint.ModItem(modId, serviceName);
}
}
}