No fps drops now
Darthpred [03-06-13 - 09:53]
diff --git a/ElvUI_SLE/modules/farm/farm.lua b/ElvUI_SLE/modules/farm/farm.lua
index 428ae28..a03cbc6 100644
--- a/ElvUI_SLE/modules/farm/farm.lua
+++ b/ElvUI_SLE/modules/farm/farm.lua
@@ -122,7 +122,7 @@ function F:OnFarm()
return GetSubZoneText() == farmzones[1]
end
-function F:InventoryUpdate()
+function F:InventoryUpdate(event)
if InCombatLockdown() then return end
for i = 1, 5 do
@@ -147,7 +147,9 @@ function F:InventoryUpdate()
button.icon:SetAlpha(button.items == 0 and .25 or 1)
end
- self:UpdateLayout()
+ if event == "BAG_UPDATE" then
+ self:UpdateLayout()
+ end
end
function F:UpdateBarLayout(bar, anchor, buttons)