Update automator-commands.js

This commit is contained in:
WYXkk 2023-08-04 17:41:06 +08:00 committed by cyip92
parent 745c5585df
commit acc5b974ce

View File

@ -401,7 +401,7 @@ export const AutomatorCommands = [
S.commandState = { timeMs: 0 };
AutomatorData.logCommandEvent(`Pause started (waiting ${timeString})`, ctx.startLine);
} else {
S.commandState.timeMs += Math.max(Time.unscaledDeltaTime.milliseconds, AutomatorBackend.currentInterval);
S.commandState.timeMs += Math.max(Time.unscaledDeltaTime.totalMilliseconds, AutomatorBackend.currentInterval);
}
const finishPause = S.commandState.timeMs >= duration;
if (finishPause) {