From 7ac90891ca995084800199a8100148ea15994585 Mon Sep 17 00:00:00 2001 From: Clansty Date: Thu, 21 Nov 2024 01:53:12 +0800 Subject: [PATCH] [F] should hook getter --- AquaMai/Fix/BasicFix.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AquaMai/Fix/BasicFix.cs b/AquaMai/Fix/BasicFix.cs index 50497095..b7c62406 100644 --- a/AquaMai/Fix/BasicFix.cs +++ b/AquaMai/Fix/BasicFix.cs @@ -69,7 +69,7 @@ private static void OnNetHttpClientCreate() } [HarmonyPostfix] - [HarmonyPatch(typeof(MAI2System.Config), "IsTarget")] + [HarmonyPatch(typeof(MAI2System.Config), "IsTarget", MethodType.Getter)] private static bool ForceNonTarget(ref bool __result) { // Who teaching others to set Target=1?! @@ -78,7 +78,7 @@ private static bool ForceNonTarget(ref bool __result) } [HarmonyPostfix] - [HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError")] + [HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError", MethodType.Getter)] private static bool ForceIgnoreError(ref bool __result) { __result = true;