Skip to content

Commit

Permalink
2.0.2
Browse files Browse the repository at this point in the history
fix for bug when not displaying any items
  • Loading branch information
Noshei committed Jan 30, 2024
1 parent eecd4bb commit f2c9aa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions GatheringTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion GatheringTracker.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2c9aa4

Please sign in to comment.