diff --git a/1.3/Assemblies/WhatTheHack.dll b/1.3/Assemblies/WhatTheHack.dll index c45900b..9f86d48 100644 Binary files a/1.3/Assemblies/WhatTheHack.dll and b/1.3/Assemblies/WhatTheHack.dll differ diff --git a/1.3/Source/WhatTheHack/Harmony/Dialog_FormCaravan.cs b/1.3/Source/WhatTheHack/Harmony/Dialog_FormCaravan.cs index f8c722d..6de569d 100644 --- a/1.3/Source/WhatTheHack/Harmony/Dialog_FormCaravan.cs +++ b/1.3/Source/WhatTheHack/Harmony/Dialog_FormCaravan.cs @@ -40,8 +40,8 @@ static void Postfix(Dialog_FormCaravan __instance, bool __result) } } - [HarmonyPatch(typeof(Dialog_FormCaravan), "DoBottomButtons")] - class Dialog_FormCaravan_DoBottomButtons + [HarmonyPatch(typeof(Dialog_FormCaravan), "TrySend")] + class Dialog_FormCaravan_TrySend { static IEnumerable Transpiler(IEnumerable instructions) { @@ -49,11 +49,11 @@ static IEnumerable Transpiler(IEnumerable inst for (var i = 0; i < instructionsList.Count; i++) { CodeInstruction instruction = instructionsList[i]; - if (instruction.opcode == OpCodes.Stloc_1) + if (instruction.opcode == OpCodes.Stloc_0) { Log.Message("found Stloc_1"); yield return new CodeInstruction(OpCodes.Ldarg_0); - yield return new CodeInstruction(OpCodes.Call, typeof(Dialog_FormCaravan_DoBottomButtons).GetMethod("AddWarnings")); + yield return new CodeInstruction(OpCodes.Call, typeof(Dialog_FormCaravan_TrySend).GetMethod("AddWarnings")); } yield return instruction; } diff --git a/About/PublishedFileId.txt b/About/PublishedFileId.txt index 8940489..1ea7ff5 100644 --- a/About/PublishedFileId.txt +++ b/About/PublishedFileId.txt @@ -1 +1 @@ -2537592208 \ No newline at end of file +1505914869 \ No newline at end of file diff --git a/About/Version.xml b/About/Version.xml index 58082a4..2f67a07 100644 --- a/About/Version.xml +++ b/About/Version.xml @@ -4,8 +4,5 @@ but no minimum version will be required --> - 4.0.0 - - 9.0.0 + 1.4.0 \ No newline at end of file diff --git a/_PublisherPlus.xml b/_PublisherPlus.xml deleted file mode 100644 index d625f7a..0000000 --- a/_PublisherPlus.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WhatTheHack\1.1\Source - C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WhatTheHack\1.2\Source - C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WhatTheHack\1.3\Source - - \ No newline at end of file