From 874d9f92f46959077eefb18cb5c7f8f3d5e7a6fe Mon Sep 17 00:00:00 2001 From: Tsubasa6848 Date: Sun, 3 Mar 2024 01:52:06 +0800 Subject: [PATCH] fix: fix load usercache --- src/Server/UserCache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server/UserCache.cc b/src/Server/UserCache.cc index be455d0..4dc04a5 100644 --- a/src/Server/UserCache.cc +++ b/src/Server/UserCache.cc @@ -108,7 +108,7 @@ std::optional getUuidByName(std::string& name) { LL_TYPE_INSTANCE_HOOK( PlayerLoginHook, - ll::memory::HookPriority::Lowest, + ll::memory::HookPriority::Highest, ServerNetworkHandler, "?handle@ServerNetworkHandler@@UEAAXAEBVNetworkIdentifier@@AEBVLoginPacket@@@Z", void, @@ -138,8 +138,8 @@ void initUserCache() { void enableUserCache() { if (!mEnableUserCache) { - initUserCache(); mEnableUserCache = true; + initUserCache(); } }