mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 01:30:50 +00:00
questitem: check for existing variables first
This commit is contained in:
@@ -24,10 +24,10 @@ pfUI:RegisterModule("questitem", function ()
|
||||
elseif itemcache[item] then
|
||||
-- read from caches
|
||||
quest, level = GetQuestLogTitle(itemcache[item])
|
||||
else
|
||||
elseif item then
|
||||
-- scan for quests
|
||||
for id, text in pairs(questlog) do
|
||||
if string.find(string.lower(text), string.lower(item), 1) then
|
||||
if string.find(string.lower((text or "")), string.lower(item), 1) then
|
||||
quest, level = GetQuestLogTitle(id)
|
||||
itemcache[item] = id
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user