Minor changes

This commit is contained in:
Victor Westerlund 2021-10-08 17:04:33 +02:00
parent 3ab606641e
commit d1b04e406b
2 changed files with 2 additions and 3 deletions

View file

@ -95,7 +95,6 @@ export default class Monkeydo extends MonkeyWorker {
// Execute tasks from Monkeydo manifest
do() {
// Hand over the loaded manifest to the MonkeyWorker task manager
const monkey = this.giveManifest();
this.play();
this.giveManifest().then(() => this.play());
}
}

View file

@ -82,7 +82,7 @@ class Monkey {
// Decrement loop iterations if not infinite (negative int)
if(this.flags.loop > 0) {
this.flags.loop = this.flags.loop - 1;
this.flags.loop--;
}
}