Skip to content

Commit

Permalink
fix: 修复时间跳跃逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
WYH2004-MC committed Nov 22, 2024
1 parent 5d87f76 commit 7253736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cheat/ChartTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ private static void OnUpdate(GameProcess __instance)
}
else if (DebugInput.GetKeyDown(KeyCode.UpArrow) || ButtonStatus == Button.Back)
{
int time = recordTime == 0 ? -999999 : -(int)Timer - recordTime;
TimeSkip(time);
int time = recordTime == 0 ? 999999 : (int)Timer - recordTime;
TimeSkip(-time);
TimeSkip(0);
MelonLogger.Msg($"Time Jump: {recordTime}({time})");
MelonLogger.Msg($"Time Jump: {recordTime}({-time})");
}
else if (ButtonStatus != Button.None)
{
Expand Down

0 comments on commit 7253736

Please sign in to comment.