Skip to content

Commit f10c480

Browse files
authored
add enabled hook lists for performance improvement (#14)
1 parent dc534a1 commit f10c480

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/QueueListCache_SC.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ class QueueListCache_Command : public CommandScript
6666
class QueueListCache_World : public WorldScript
6767
{
6868
public:
69-
QueueListCache_World() : WorldScript("QueueListCache_World") { }
69+
QueueListCache_World() : WorldScript("QueueListCache_World", {
70+
WORLDHOOK_ON_BEFORE_CONFIG_LOAD,
71+
WORLDHOOK_ON_STARTUP,
72+
WORLDHOOK_ON_UPDATE
73+
}) { }
7074

7175
void OnBeforeConfigLoad(bool reload) override
7276
{

0 commit comments

Comments
 (0)