diff --git a/data/GameManager.js b/data/GameManager.js index c27632a..ea41fc5 100644 --- a/data/GameManager.js +++ b/data/GameManager.js @@ -240,7 +240,11 @@ class EJS_GameManager { }) } toggleMainLoop(playing) { - this.functions.toggleMainLoop(playing); + if (playing) { + this.Module.resumeMainLoop(); + } else { + this.Module.pauseMainLoop(); + } } getCoreOptions() { return this.functions.getCoreOptions();