Skip to content

Commit

Permalink
Hide herbs/veins from higher expansions in the filter dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Aug 30, 2019
1 parent e666ff0 commit 5406d55
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,17 @@ local sortedFilter = setmetatable({}, {__index = function(t, k)
delocalizedZones[name] = zoneID
end
else
local expansion = GatherMate.nodeExpansion[k]
local map = GatherMate.nodeIDs[k]
for name in pairs(map) do
local idx = #new+1
new[idx] = name
if WoWClassic and expansion and expansion[map[name]] > 1 then
-- skip
else
local idx = #new+1
new[idx] = name
end
denormalizedNames[name] = name
end
local expansion = GatherMate.nodeExpansion[k]
if expansion then
-- We only end up creating one function per tracked type anyway
table.sort(new, function(a, b)
Expand Down

0 comments on commit 5406d55

Please sign in to comment.