fix for cross-play update
This commit is contained in:
16
Torch.API/Utils/ModItemUtils.cs
Normal file
16
Torch.API/Utils/ModItemUtils.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user