Skip to content

Commit

Permalink
[F] should hook getter
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 20, 2024
1 parent 711c18a commit 7ac9089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AquaMai/Fix/BasicFix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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?!
Expand All @@ -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;
Expand Down

0 comments on commit 7ac9089

Please sign in to comment.