mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 09:50:50 +00:00
bags: only update cooldown if frame exists
This commit is contained in:
@@ -82,11 +82,13 @@ pfUI:RegisterModule("bags", function ()
|
|||||||
if bag == -2 and pfUI.bag.showKeyring == true then bagsize = GetKeyRingSize() end
|
if bag == -2 and pfUI.bag.showKeyring == true then bagsize = GetKeyRingSize() end
|
||||||
for slot=1, bagsize do
|
for slot=1, bagsize do
|
||||||
if pfUI.bags[bag].slots[slot].frame.hasItem then
|
if pfUI.bags[bag].slots[slot].frame.hasItem then
|
||||||
|
if _G[pfUI.bags[bag].slots[slot].frame:GetName() .. "Cooldown"] then
|
||||||
ContainerFrame_UpdateCooldown(bag, pfUI.bags[bag].slots[slot].frame)
|
ContainerFrame_UpdateCooldown(bag, pfUI.bags[bag].slots[slot].frame)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if event == "ITEM_LOCK_CHANGED" then
|
if event == "ITEM_LOCK_CHANGED" then
|
||||||
for bag=-2, 11 do
|
for bag=-2, 11 do
|
||||||
|
|||||||
Reference in New Issue
Block a user