From c9210f80c7f01b6fbdd0e8b17e678faba147fcdf Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Thu, 27 Feb 2020 19:56:57 -0600 Subject: [PATCH] Added BindingFlags to get PatchProcessor patch target --- IPA.Loader/Loader/HarmonyProtector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA.Loader/Loader/HarmonyProtector.cs b/IPA.Loader/Loader/HarmonyProtector.cs index f87da4bc..2d49fea5 100644 --- a/IPA.Loader/Loader/HarmonyProtector.cs +++ b/IPA.Loader/Loader/HarmonyProtector.cs @@ -29,7 +29,7 @@ namespace IPA.Loader } var target = typeof(PatchProcessor).GetMethod("Patch"); - var patch = typeof(HarmonyProtector).GetMethod(nameof(PatchProcessor_Patch_Prefix)); + var patch = typeof(HarmonyProtector).GetMethod(nameof(PatchProcessor_Patch_Prefix), BindingFlags.NonPublic | BindingFlags.Static); inst.Patch(target, new HarmonyMethod(patch)); }