From 4cb18bff3cb402e09027eb3611ea4b115258eaad Mon Sep 17 00:00:00 2001 From: pas2704 Date: Fri, 16 May 2025 21:41:01 -0400 Subject: [PATCH] Fix arg from last patch --- Plugin.ClientModLoader/ModInjector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();