From f2c9aa409005dae281ad3c710f99ffaea8d8e642 Mon Sep 17 00:00:00 2001 From: Noshei <8866000+Noshei@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:19:13 -0700 Subject: [PATCH] 2.0.2 fix for bug when not displaying any items --- GatheringTracker.lua | 6 +++--- GatheringTracker.toc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GatheringTracker.lua b/GatheringTracker.lua index c91d2f2..60cc423 100644 --- a/GatheringTracker.lua +++ b/GatheringTracker.lua @@ -204,7 +204,6 @@ function GT:RemoveDisabledItemData(key, itemID) if key then return end - local itemID = tostring(itemID) if GT.InventoryData[itemID] then GT.Debug("Remove Disabled Item Data: remove Inventory", 3, key, itemID) @@ -218,8 +217,8 @@ function GT:RemoveDisabledItemData(key, itemID) end end - if GT.Display.Frames[tonumber(itemID)] then - GT:RemoveDiaplayRow(tonumber(itemID)) + if GT.Display.Frames[itemID] then + GT:RemoveDiaplayRow(itemID) GT:AllignRows() end end @@ -643,6 +642,7 @@ function GT:PrepareDataForDisplay(event, wait) for senderIndex, senderData in ipairs(GT.sender) do for itemID, itemCount in pairs(senderData.inventoryData) do if itemID > #GT.ItemData.Other.Other then + GT.Debug("Create Totals", 4, senderIndex, itemID, itemCount) local calculatedItemCount = 0 calculatedItemCount = itemCount - GT.db.profile.General.ignoreAmount diff --git a/GatheringTracker.toc b/GatheringTracker.toc index a253077..cf35e9a 100644 --- a/GatheringTracker.toc +++ b/GatheringTracker.toc @@ -2,7 +2,7 @@ ## Title: Gathering Tracker ## Notes: Addon for tracking gathered items, supports solo players and groups ## Author: Noshei -## Version: 2.0.1 +## Version: 2.0.2 ## OptionalDeps: TradeSkillMaster ## SavedVariables: GatheringTrackerDB ## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick