summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/Rewriters
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-21 23:29:23 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-21 23:29:23 -0400
commitdb0a46cb688ac47a06067b07dfe30bc2b65ec369 (patch)
tree0f7066882bb246686336557011a07f9c44cdae24 /src/SMAPI/Framework/ModLoading/Rewriters
parentf52370f6fa1fb3ab82a5c741fea2e8e5aee60223 (diff)
downloadSMAPI-db0a46cb688ac47a06067b07dfe30bc2b65ec369.tar.gz
SMAPI-db0a46cb688ac47a06067b07dfe30bc2b65ec369.tar.bz2
SMAPI-db0a46cb688ac47a06067b07dfe30bc2b65ec369.zip
rewrite HarmonyMethod to allow null (#711)
Diffstat (limited to 'src/SMAPI/Framework/ModLoading/Rewriters')
-rw-r--r--src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
index ce6417a8..8fed170a 100644
--- a/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
+++ b/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
@@ -92,6 +92,10 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters
toType = typeof(AccessToolsFacade);
break;
+ case "HarmonyLib.HarmonyMethod":
+ toType = typeof(HarmonyMethodFacade);
+ break;
+
default:
return false;
}