diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-21 23:29:23 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-05-21 23:29:23 -0400 |
commit | db0a46cb688ac47a06067b07dfe30bc2b65ec369 (patch) | |
tree | 0f7066882bb246686336557011a07f9c44cdae24 /src/SMAPI/Framework/ModLoading/Rewriters | |
parent | f52370f6fa1fb3ab82a5c741fea2e8e5aee60223 (diff) | |
download | SMAPI-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.cs | 4 |
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; } |