mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-26 09:26:02 +00:00
bags: remove update faction event
This event was introduced as a hackfix to provide proper repaints of the bags. There was an issue that bags are not fully loaded on PLAYER_ENTERING_WORLD, therefore the later triggered UPDATE_FACTION was used. As the bagframes have seen alot of rewrite and cleanups, it should be save to remove this.
This commit is contained in:
+1
-2
@@ -49,7 +49,6 @@ pfUI:RegisterModule("bags", function ()
|
||||
|
||||
pfUI.bag = CreateFrame("Frame", "pfUIBag")
|
||||
pfUI.bag:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
pfUI.bag:RegisterEvent("UPDATE_FACTION")
|
||||
pfUI.bag:RegisterEvent("BAG_UPDATE")
|
||||
pfUI.bag:RegisterEvent("PLAYERBANKSLOTS_CHANGED")
|
||||
pfUI.bag:RegisterEvent("PLAYERBANKBAGSLOTS_CHANGED")
|
||||
@@ -60,7 +59,7 @@ pfUI:RegisterModule("bags", function ()
|
||||
pfUI.bag:RegisterEvent("ITEM_LOCK_CHANGED")
|
||||
|
||||
pfUI.bag:SetScript("OnEvent", function()
|
||||
if event == "PLAYER_ENTERING_WORLD" or event == "UPDATE_FACTION" then
|
||||
if event == "PLAYER_ENTERING_WORLD" then
|
||||
pfUI.bag:CreateBags()
|
||||
pfUI.bag.right:Hide()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user