mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
actionbar: avoid adding updates to invalid bars
This commit is contained in:
@@ -707,7 +707,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
|
|||||||
-- handle aura events
|
-- handle aura events
|
||||||
if aura_events[event] then
|
if aura_events[event] then
|
||||||
for j=1,12 do
|
for j=1,12 do
|
||||||
if self[11][j] then
|
if self[11] and self[11][j] then
|
||||||
updatecache[self[11][j].slot] = true
|
updatecache[self[11][j].slot] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -717,7 +717,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
|
|||||||
-- handle pet events
|
-- handle pet events
|
||||||
if pet_events[event] then
|
if pet_events[event] then
|
||||||
for j=1,12 do
|
for j=1,12 do
|
||||||
if self[12][j] then
|
if self[12] and self[12][j] then
|
||||||
updatecache[self[12][j].slot] = true
|
updatecache[self[12][j].slot] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user