Actually fix #772
This commit is contained in:
@@ -87,11 +87,12 @@ export default function CMLoopHook() {
|
||||
LoopCache();
|
||||
|
||||
// Check all changing minigames and game-states
|
||||
CheckGoldenCookie();
|
||||
CheckTickerFortune();
|
||||
CheckSeasonPopup();
|
||||
CheckGardenTick();
|
||||
CheckMagicMeter();
|
||||
CheckWrinklerCount();
|
||||
}
|
||||
// To remove Timers when ascending
|
||||
CheckGoldenCookie();
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { GCTimers } from '../Disp/VariablesAndData';
|
||||
|
||||
/**
|
||||
* This is called when the user ascends
|
||||
* It is called by CM.Main.Loop
|
||||
*/
|
||||
export default function CMRestHook() {
|
||||
Object.keys(GCTimers).forEach((i) => {
|
||||
GCTimers[i].parentNode.removeChild(GCTimers[i]);
|
||||
delete GCTimers[i];
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user