Skip to content

Commit

Permalink
Rimworld 1.1.2609 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rheirman committed Apr 20, 2020
1 parent fd92dc0 commit 1e5540a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified 1.1/Assemblies/WhatTheHack.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion 1.1/Source/WhatTheHack/Harmony/Selector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static class Selector_SelectInsideDragbox
//Since the code we want to change is inside a hidden inner function callod b__0, we get the method to be patched using the harmony access tools.
static MethodBase TargetMethod()
{
return typeof(Selector).GetNestedTypes(AccessTools.all).FirstOrDefault((c) => c.Name =="<>c").GetMethods(AccessTools.all).FirstOrDefault(m => m.Name.Contains("b__29_1"));
return typeof(Selector).GetNestedTypes(AccessTools.all).FirstOrDefault((c) => c.Name =="<>c").GetMethods(AccessTools.all).FirstOrDefault(m => m.Name.Contains("SelectInsideDragBox") && m.Name.EndsWith("_1"));
}
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
Expand Down
2 changes: 1 addition & 1 deletion About/Version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
but no minimum version will be required -->

<!-- Optional. This specifies the version of your mod for the library. Otherwise, the version of your mod's assembly will be used. -->
<overrideVersion>2.1.2</overrideVersion>
<overrideVersion>2.1.3</overrideVersion>
<!-- Optional. Use this to specify the version of HugsLib you are targeting.
See https://github.com/UnlimitedHugs/RimworldHugsLib/releases for the current version of the library.-->
<requiredLibraryVersion>5.0.0</requiredLibraryVersion>
Expand Down

0 comments on commit 1e5540a

Please sign in to comment.