mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 13:00:50 +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
|
for _, bag in pairs(pfUI.BACKPACK) do
|
||||||
pfUI.bag.delay.UpdateBag[bag] = true
|
pfUI.bag.delay.UpdateBag[bag] = true
|
||||||
end
|
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
|
for _, bag in pairs(pfUI.BANK) do
|
||||||
pfUI.bag.delay.UpdateBag[bag] = true
|
pfUI.bag.delay.UpdateBag[bag] = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user