mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 15:57:28 +08:00
[F] Fix disable reboot patch
This commit is contained in:
@@ -24,8 +24,9 @@ namespace AquaMai.UX
|
|||||||
}
|
}
|
||||||
|
|
||||||
// RemainingMinutes
|
// RemainingMinutes
|
||||||
|
// Original: private int RemainingMinutes => (this._secServerMaintenance + 59) / 60;
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(MaintenanceTimer), "RemainingMinutes")]
|
[HarmonyPatch(typeof(MaintenanceTimer), "RemainingMinutes", MethodType.Getter)]
|
||||||
public static bool RemainingMinutes(ref int __result)
|
public static bool RemainingMinutes(ref int __result)
|
||||||
{
|
{
|
||||||
__result = 600;
|
__result = 600;
|
||||||
@@ -53,11 +54,17 @@ namespace AquaMai.UX
|
|||||||
// Execute
|
// Execute
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(MaintenanceTimer), "Execute")]
|
[HarmonyPatch(typeof(MaintenanceTimer), "Execute")]
|
||||||
public static bool Execute(MaintenanceTimer __instance) => false;
|
public static bool Execute(MaintenanceTimer __instance)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// UpdateTimes
|
// UpdateTimes
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(MaintenanceTimer), "UpdateTimes")]
|
[HarmonyPatch(typeof(MaintenanceTimer), "UpdateTimes")]
|
||||||
public static bool UpdateTimes(MaintenanceTimer __instance) => false;
|
public static bool UpdateTimes(MaintenanceTimer __instance)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user