Skip to content

Commit

Permalink
2.0.3
Browse files Browse the repository at this point in the history
fix for bug when an item's count goes to 0 after being positive (like when prospecting)
  • Loading branch information
Noshei committed Jan 30, 2024
1 parent f2c9aa4 commit 988e9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions GatheringTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,7 @@ function GT:PrepareDataForDisplay(event, wait)
for itemID, itemData in pairs(GT.InventoryData) do
GT.Debug("Check for Items to remove from Display", 4, itemID)
if GT:SumTable(itemData) == 0 then
GT.InventoryData[itemID] = nil
if GT.Display.Frames[tonumber(itemID)] then
GT:RemoveDiaplayRow(tonumber(itemID))
end
GT:RemoveDisabledItemData(flase, itemID)
end
if not (#itemData == #GT.sender) then
local diff = #GT.sender - #itemData
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.2
## Version: 2.0.3
## OptionalDeps: TradeSkillMaster
## SavedVariables: GatheringTrackerDB
## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick
Expand Down

0 comments on commit 988e9d9

Please sign in to comment.