Fix sounds playing at start up #903
This commit is contained in:
2
dist/CookieMonsterDev.js
vendored
2
dist/CookieMonsterDev.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonsterDev.js.map
vendored
2
dist/CookieMonsterDev.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
|
||||
@@ -31,5 +31,4 @@ export default function init() {
|
||||
Game.registerHook('draw', CMDrawHook);
|
||||
Game.registerHook('logic', CMLoopHook);
|
||||
}
|
||||
window.cookieMonsterFrameworkData.isInitializing = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user