Change order of Steam delay

This commit is contained in:
Daniël van Noord
2021-09-05 13:02:04 +02:00
parent e4267f4c41
commit b74ae3eee0
5 changed files with 9 additions and 10 deletions

View File

@@ -12,13 +12,12 @@ if (typeof Steam !== 'undefined') {
// Need to add a delay for steam
setTimeout(function () {
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;
}, 2000);
} else {
Game.registerMod('CookieMonster', CM);
window.cookieMonsterFrameworkData.isInitializing = false;
}
// 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;