From 22d4291a00426680f1d27640ce013be062391c6f Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:50:40 -0500 Subject: [PATCH] Use resumeMainLoop and pauseMainLoop --- data/GameManager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();