Add a delay for loading in Steam
This commit is contained in:
2
dist/CookieMonster.js
vendored
2
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
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
@@ -8,7 +8,12 @@ const CM = {
|
|||||||
save,
|
save,
|
||||||
};
|
};
|
||||||
|
|
||||||
Game.registerMod('CookieMonster', CM);
|
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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user