Fix the delay for Steam

This commit is contained in:
Daniël van Noord
2021-09-04 16:16:28 +02:00
parent f7e7d171e8
commit 62dc882e5a
5 changed files with 10 additions and 6 deletions

View File

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