diff --git a/Plugin.ClientModLoader/ModInjector.cs b/Plugin.ClientModLoader/ModInjector.cs index 839d9f1..f19f8a6 100644 --- a/Plugin.ClientModLoader/ModInjector.cs +++ b/Plugin.ClientModLoader/ModInjector.cs @@ -26,9 +26,9 @@ internal static class ModInjector [HarmonyPatch(typeof(MyWorkshop), nameof(MyWorkshop.DownloadWorldModsBlockingInternal))] [HarmonyPostfix] - private static void DownloadModsBlockingPostfix(MyWorkshop.ResultData ret, List mods, List __state) + private static void DownloadModsBlockingPostfix(MyWorkshop.ResultData __result, List mods, List __state) { - if (ret.Result != VRage.GameServices.MyGameServiceCallResult.OK) + if (__result.Result != VRage.GameServices.MyGameServiceCallResult.OK) return; //world will not load, and mod data isn't loaded var worldMods = __state.Select(b => b.PublishedFileId).ToImmutableHashSet();