mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 04:50:49 +00:00
Guard unusable bag refresh against the bank frame not existing yet
This commit is contained in:
@@ -48,7 +48,8 @@ pfUI:RegisterModule("unusable", function ()
|
||||
for _, bag in pairs(pfUI.BACKPACK) do
|
||||
pfUI.bag.delay.UpdateBag[bag] = true
|
||||
end
|
||||
if pfUI.bag.left:IsShown() then
|
||||
-- the bank frame is only created on first bank visit
|
||||
if pfUI.bag.left and pfUI.bag.left:IsShown() then
|
||||
for _, bag in pairs(pfUI.BANK) do
|
||||
pfUI.bag.delay.UpdateBag[bag] = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user