Add a delay for loading in Steam

This commit is contained in:
Daniël van Noord
2021-09-03 12:34:53 +02:00
parent 2940d1c631
commit c4812ef8fc
5 changed files with 10 additions and 5 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

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