Merge pull request #962 from CookieMonsterTeam/dev

Add delay for steam
This commit is contained in:
Daniël van Noord
2021-09-03 12:41:00 +02:00
committed by GitHub
5 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -10,11 +10,11 @@ const CM = {
if (typeof Steam !== 'undefined') { if (typeof Steam !== 'undefined') {
// Need to add a delay for steam // Need to add a delay for steam
setTimeout(function () { setTimeout(function () {}, 300);
Game.registerMod('CookieMonster', CM);
}, 300);
} }
Game.registerMod('CookieMonster', CM);
// Game.registerMod also calls CM.load() which calls the loop hook // 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 // Thus sounds normally play at start up as Season and Garden states are checked
window.cookieMonsterFrameworkData.isInitializing = false; window.cookieMonsterFrameworkData.isInitializing = false;