[F] BasicFix
Build AquaMai / build (push) Has been cancelled Details

pull/82/head
Clansty 2024-11-21 18:47:13 +08:00
parent fbff4a8cb1
commit 9143b92932
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class BasicFix
ServicePointManager.ServerCertificateValidationCallback = null; ServicePointManager.ServerCertificateValidationCallback = null;
} }
[HarmonyPostfix] [HarmonyPrefix]
[HarmonyPatch(typeof(MAI2System.Config), "IsTarget", MethodType.Getter)] [HarmonyPatch(typeof(MAI2System.Config), "IsTarget", MethodType.Getter)]
private static bool ForceNonTarget(ref bool __result) private static bool ForceNonTarget(ref bool __result)
{ {
@ -77,7 +77,7 @@ public class BasicFix
return false; return false;
} }
[HarmonyPostfix] [HarmonyPrefix]
[HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError", MethodType.Getter)] [HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError", MethodType.Getter)]
private static bool ForceIgnoreError(ref bool __result) private static bool ForceIgnoreError(ref bool __result)
{ {