From 7472d796d229e4e314eb077a9eaf45d2f209a43a Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Tue, 1 Sep 2026 13:53:55 +0200 Subject: [PATCH] Use shared player cache in Chat Levels --- mods/chat-levels.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/chat-levels.lua b/mods/chat-levels.lua index 5a5660a..17437db 100644 --- a/mods/chat-levels.lua +++ b/mods/chat-levels.lua @@ -3,6 +3,7 @@ local T = ShaguTweaks.T local gfind = string.gmatch or string.gfind local rgbhex = ShaguTweaks.rgbhex local strsplit = ShaguTweaks.strsplit +local GetPlayerCache = ShaguTweaks.GetPlayerCache local module = ShaguTweaks:register({ title = T["Chat Levels"], @@ -19,7 +20,7 @@ module.enable = function(self) if this.loaded then return end this.loaded = true - local playerdb = ShaguTweaks_cache and ShaguTweaks_cache["players"] + local playerdb = GetPlayerCache() for i=1, NUM_CHAT_WINDOWS do local frame = _G["ChatFrame"..i]