Fix sounds playing at start up #903

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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;

View File

@@ -31,5 +31,4 @@ export default function init() {
Game.registerHook('draw', CMDrawHook);
Game.registerHook('logic', CMLoopHook);
}
window.cookieMonsterFrameworkData.isInitializing = false;
}