[F] should hook getter
Build AquaMai / build (push) Has been cancelled Details

pull/88/head
Clansty 2024-11-21 01:53:12 +08:00
parent 711c18a7f1
commit 7ac90891ca
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public class BasicFix
} }
[HarmonyPostfix] [HarmonyPostfix]
[HarmonyPatch(typeof(MAI2System.Config), "IsTarget")] [HarmonyPatch(typeof(MAI2System.Config), "IsTarget", MethodType.Getter)]
private static bool ForceNonTarget(ref bool __result) private static bool ForceNonTarget(ref bool __result)
{ {
// Who teaching others to set Target=1?! // Who teaching others to set Target=1?!
@ -78,7 +78,7 @@ public class BasicFix
} }
[HarmonyPostfix] [HarmonyPostfix]
[HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError")] [HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError", MethodType.Getter)]
private static bool ForceIgnoreError(ref bool __result) private static bool ForceIgnoreError(ref bool __result)
{ {
__result = true; __result = true;