Fix favicon not being reset with no GC left

This commit is contained in:
Chorizorro
2020-12-05 23:14:12 +01:00
parent 15d467992d
commit 87a85bfc59
3 changed files with 6 additions and 6 deletions

View File

@@ -305,7 +305,6 @@ CM.Main.CheckGoldenCookie = function() {
CM.Disp.PlaySound(CM.Config.GCSoundURL, 'GCSound', 'GCVolume');
CM.Disp.Notification('GCNotification', "Golden Cookie Spawned", "A Golden Cookie has spawned. Click it now!")
}
CM.Disp.UpdateFavicon();
for (var i in Game.shimmers) {
if (typeof CM.Disp.GCTimers[Game.shimmers[i].id] == "undefined") {
@@ -313,7 +312,8 @@ CM.Main.CheckGoldenCookie = function() {
}
}
}
CM.Main.lastSpawnedGoldenCookieState = CM.Main.currSpawnedGoldenCookieState
CM.Disp.UpdateFavicon();
CM.Main.lastSpawnedGoldenCookieState = CM.Main.currSpawnedGoldenCookieState;
if (CM.Main.currSpawnedGoldenCookieState == 0) CM.Cache.spawnedGoldenShimmer = 0;
}
else if (CM.Config.GCTimer == 1 && CM.Main.lastGoldenCookieState) {