Skip to content

Commit

Permalink
2.0.4
Browse files Browse the repository at this point in the history
fixed error when inventory changes without any items being displayed in Gathering Tracker
  • Loading branch information
Noshei committed Jan 30, 2024
1 parent 988e9d9 commit b58bcd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion GatheringTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,15 @@ function GT:PrepareDataForDisplay(event, wait)

if senderData.name == GT.Player and not GT.NotificationPause then
GT.Debug("Trigger Notification Handler for all", 2)
GT:NotificationHandler("all", "all", playerTotals.countTotal[senderIndex], playerTotals.valueTotal[senderIndex])
local countTotal = 0
local valueTotal = 0
if playerTotals and playerTotals.countTotal and playerTotals.countTotal[senderIndex] then
countTotal = playerTotals.countTotal[senderIndex]
end
if playerTotals and playerTotals.valueTotal and playerTotals.valueTotal[senderIndex] then
valueTotal = playerTotals.valueTotal[senderIndex]
end
GT:NotificationHandler("all", "all", countTotal, valueTotal)
end
end

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.3
## Version: 2.0.4
## OptionalDeps: TradeSkillMaster
## SavedVariables: GatheringTrackerDB
## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick
Expand Down

0 comments on commit b58bcd8

Please sign in to comment.