Renamed Draw hook
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
* This function handles all custom drawing for the Game.Draw() function.
|
||||
* It is hooked on 'draw' by CM.RegisterHooks()
|
||||
*/
|
||||
export default function Draw() {
|
||||
export default function CMDrawHook() {
|
||||
// Draw autosave timer in stats menu, this must be done here to make it count down correctly
|
||||
if (
|
||||
Game.prefs.autosave &&
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { VersionMajor, VersionMinor } from '../Data/Moddata';
|
||||
import Draw from '../Disp/Draw';
|
||||
import CMDrawHook from '../Disp/DrawHook';
|
||||
import CMClickHook from '../Main/ClickHook';
|
||||
import InitializeCookieMonster from '../Main/Initialization';
|
||||
import CMLoopHook from '../Main/LoopHook';
|
||||
@@ -22,7 +22,7 @@ export default function init() {
|
||||
}
|
||||
if (proceed) {
|
||||
InitializeCookieMonster();
|
||||
Game.registerHook('draw', Draw);
|
||||
Game.registerHook('draw', CMDrawHook);
|
||||
Game.registerHook('logic', CMLoopHook);
|
||||
Game.registerHook('click', CMClickHook);
|
||||
isInitializing = false;
|
||||
|
||||
Reference in New Issue
Block a user