mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
only fill playerdb if all values are given
This commit is contained in:
+3
-1
@@ -120,7 +120,9 @@ pfUI:RegisterModule("chat", function ()
|
||||
if pfLocaleClass[GetLocale()] and pfLocaleClass[GetLocale()][Class] then
|
||||
Class = pfLocaleClass[GetLocale()][Class]
|
||||
end
|
||||
pfUI_playerDB[Name] = { class = Class, level = Level }
|
||||
if Name and Level and Class and pfUI_playerDB then
|
||||
pfUI_playerDB[Name] = { class = Class, level = Level }
|
||||
end
|
||||
end
|
||||
|
||||
elseif event == "RAID_ROSTER_UPDATE" or event == "PLAYER_ENTERING_WORLD" then
|
||||
|
||||
Reference in New Issue
Block a user