Skip to content

Commit 27f909e

Browse files
committed
Bump to 1.7.8 & Fix maxLoops implementation
1 parent 47ac734 commit 27f909e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

common/src/main/java/com/vltno/timeloop/TimeLoop.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ public static void executeCommand(String command) {
102102
* Runs the next iteration of the loop.
103103
*/
104104
public static void runLoopIteration() {
105+
if (loopIteration + 1 >= maxLoops) {
106+
stopLoop();
107+
}
105108
LOOP_LOGGER.info("Starting iteration {} of loop", loopIteration);
106109
saveRecordings();
107110
removeOldSceneEntries();

0 commit comments

Comments
 (0)