diff --git a/Monkeydo.mjs b/Monkeydo.mjs index 62f8994..4cdf17e 100644 --- a/Monkeydo.mjs +++ b/Monkeydo.mjs @@ -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()); } } \ No newline at end of file diff --git a/do/Monkey.js b/do/Monkey.js index 95a0cd8..95774b0 100644 --- a/do/Monkey.js +++ b/do/Monkey.js @@ -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--; } }