diff --git a/Components/OperationManagerPatches.cs b/Components/OperationManagerPatches.cs index 1e1d057..b8b91f6 100644 --- a/Components/OperationManagerPatches.cs +++ b/Components/OperationManagerPatches.cs @@ -1,4 +1,5 @@ -using MU3.Operation; +using MU3.Data; +using MU3.Operation; using System; using System.Collections.Generic; using System.Linq; @@ -35,5 +36,18 @@ static bool getCreditUseRestrictionByMaintenance(ref ClosingManager.CreditUseRes __result = ClosingManager.CreditUseRestriction.None; return false; } + + public static bool patchUpdateGamePeriodOnce = true; + [MethodPatch(PatchType.Prefix, typeof(OperationManager), "updateGamePeriod")] + private static bool updateGamePeriod(ref OperationData ____downloadData) + { + if (patchUpdateGamePeriodOnce) + { + ____downloadData.isUpdate = true; + patchUpdateGamePeriodOnce = false; + } + + return true; + } } }