Skip to content

Commit

Permalink
Fix for game version 202.120
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvaness committed Jun 13, 2023
1 parent a72d34b commit f8b590e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PluginLoader/SteamAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void Update(IEnumerable<ulong> ids)
Thread.Sleep(10);
}

if (!result.Success)
if (result.Result != VRage.GameServices.MyGameServiceCallResult.OK)
{
Exception[] exceptions = task.Exceptions;
if(exceptions != null && exceptions.Length > 0)
Expand All @@ -60,7 +60,7 @@ public static void Update(IEnumerable<ulong> ids)
}
else
{
LogFile.WriteLine("Unable to update workshop items");
LogFile.WriteLine("Unable to update workshop items. Result: " + result.Result);
}

}
Expand All @@ -78,7 +78,7 @@ public static MyWorkshop.ResultData UpdateInternal(List<MyObjectBuilder_Checkpoi
DownloadModsBlocking = AccessTools.Method(typeof(MyWorkshop), "DownloadModsBlocking");

MyWorkshop.ResultData resultData = (MyWorkshop.ResultData)DownloadModsBlocking.Invoke(mods, new object[] {
mods, new MyWorkshop.ResultData() { Success = true }, list, new MyWorkshop.CancelToken()
mods, new MyWorkshop.ResultData(), list, new MyWorkshop.CancelToken()
});

MyLog.Default.DecreaseIndent();
Expand Down

0 comments on commit f8b590e

Please sign in to comment.