Fix sounds playing at start up #903

This commit is contained in:
Daniël van Noord committed 2021-07-21 14:42:17 +02:00
1 parent 3e3659e2a4
commit bd0a55609d
4 files changed
+6 -3

No files matched your search

+4
View File
@@ -9,3 +9,7 @@ const CM = {
};
Game.registerMod('CookieMonster', CM);
// Game.registerMod also calls CM.load() which calls the loop hook
// Thus sounds normally play at start up as Season and Garden states are checked
window.cookieMonsterFrameworkData.isInitializing = false;
-1
View File
@@ -31,5 +31,4 @@ export default function init() {
Game.registerHook('draw', CMDrawHook);
Game.registerHook('logic', CMLoopHook);
}
window.cookieMonsterFrameworkData.isInitializing = false;
}