Skip to content

Commit

Permalink
Modified Profession list logic to only pull in Things which are consi…
Browse files Browse the repository at this point in the history
…dered 'Collectible' (at the time of being opened) (fixes #722)
  • Loading branch information
ImUnicke committed Mar 13, 2021
1 parent 3e5e30b commit f7a41a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AllTheThings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13261,7 +13261,7 @@ function app:BuildSearchResponse(groups, field, value)
local t;
if type(field) == "function" then
for i,group in ipairs(groups) do
if field(group) then
if field(group) and group.collectible then
if not t then t = {}; end
tinsert(t, CloneData(group));
elseif group.g then
Expand All @@ -13275,7 +13275,7 @@ function app:BuildSearchResponse(groups, field, value)
else
for i,group in ipairs(groups) do
local v = group[field];
if v and v == value then
if v and v == value and group.collectible then
if not t then t = {}; end
tinsert(t, CloneData(group));
elseif group.g then
Expand Down

0 comments on commit f7a41a9

Please sign in to comment.