From 4726c93c3002b443db32ef3a9dafa42a18a7ee8a Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 31 Dec 2016 15:02:26 +0100 Subject: [PATCH] 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. --- modules/bags.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/bags.lua b/modules/bags.lua index 9e4d578c..46337093 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -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()