diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-10 11:50:35 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-10 11:50:35 -0400 |
commit | 10531e537fda7c4901304b295f4ef60ac1f83eea (patch) | |
tree | da5ecb928b483fda8d55ff7b6733ad29fbb01d8b /src/SMAPI/Metadata | |
parent | 1ff09685906b03b46b23e69b7bfe95df24c8184f (diff) | |
download | SMAPI-10531e537fda7c4901304b295f4ef60ac1f83eea.tar.gz SMAPI-10531e537fda7c4901304b295f4ef60ac1f83eea.tar.bz2 SMAPI-10531e537fda7c4901304b295f4ef60ac1f83eea.zip |
rewrite AccessTools methods which changed in Harmony 2.0 (#711)
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r-- | src/SMAPI/Metadata/InstructionMetadata.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs index 64216138..40a7588e 100644 --- a/src/SMAPI/Metadata/InstructionMetadata.cs +++ b/src/SMAPI/Metadata/InstructionMetadata.cs @@ -38,7 +38,8 @@ namespace StardewModdingAPI.Metadata // rewrite for SMAPI 3.6 (Harmony 1.x => 2.0 update) yield return new Harmony1AssemblyRewriter(); - yield return new MethodParentRewriter("HarmonyLib.Harmony", typeof(HarmonyInstanceMethods), onlyIfPlatformChanged: false, nounPhrase: Harmony1AssemblyRewriter.DefaultNounPhrase); + yield return new MethodParentRewriter(typeof(HarmonyLib.Harmony), typeof(HarmonyInstanceMethods), onlyIfPlatformChanged: false, nounPhrase: Harmony1AssemblyRewriter.DefaultNounPhrase); + yield return new MethodParentRewriter(typeof(HarmonyLib.AccessTools), typeof(AccessToolsMethods), onlyIfPlatformChanged: false, nounPhrase: Harmony1AssemblyRewriter.DefaultNounPhrase); /**** ** detect mod issues |