mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Update automator-commands.js
This commit is contained in:
parent
745c5585df
commit
acc5b974ce
|
@ -401,7 +401,7 @@ export const AutomatorCommands = [
|
||||||
S.commandState = { timeMs: 0 };
|
S.commandState = { timeMs: 0 };
|
||||||
AutomatorData.logCommandEvent(`Pause started (waiting ${timeString})`, ctx.startLine);
|
AutomatorData.logCommandEvent(`Pause started (waiting ${timeString})`, ctx.startLine);
|
||||||
} else {
|
} 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;
|
const finishPause = S.commandState.timeMs >= duration;
|
||||||
if (finishPause) {
|
if (finishPause) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user