Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
fix(time): Time skip setting not checked correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Oct 19, 2022
1 parent 36566ad commit 9bf54c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/userscript/source/TimeControlManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,15 @@ export class TimeControlManager {
while (
yearsPerCycle < canSkip &&
this.settings.timeSkip.cycles[((currentCycle + skipCycles) % cyclesPerEra) as CycleIndices]
.enabled
) {
willSkip += yearsPerCycle;
canSkip -= yearsPerCycle;
skipCycles += 1;
}
if (
this.settings.timeSkip.cycles[
((currentCycle + skipCycles) % cyclesPerEra) as CycleIndices
] &&
this.settings.timeSkip.cycles[((currentCycle + skipCycles) % cyclesPerEra) as CycleIndices]
.enabled &&
0 < canSkip
) {
willSkip += canSkip;
Expand Down

0 comments on commit 9bf54c9

Please sign in to comment.