From 30d259826ac9fa7ef190702f1195670efad902ef Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 6 Mar 2013 13:53:51 +0400 Subject: [PATCH] No fps drops now --- ElvUI_SLE/modules/farm/farm.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 1.7.9.5