Skip to content

Commit

Permalink
Retail: SearchForLink no longer repeats identical searches when searc…
Browse files Browse the repository at this point in the history
…hing for modItemID

Retail: Source(s) group is now a bit more accurate in checking whether the Source contains the specified group
  • Loading branch information
ImUnicke committed Oct 28, 2024
1 parent 65b0d3e commit cd5ed28
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 @@ -3302,7 +3302,7 @@ local function BuildSourceParent(group)
local parentKey, parent;
-- collect all possible parent groups for all instances of this Thing
for _,thing in ipairs(things) do
if thing.hash == groupHash or isAchievement then
if isAchievement or GroupMatchesParams(thing, groupKey, keyValue) then
---@class ATTTempParentObject
---@field key string
---@field hash string
Expand Down Expand Up @@ -3923,7 +3923,7 @@ local function SearchForLink(link)
search = SearchForObject("modItemID", exactItemID, nil, true);
if #search > 0 then return search; end
end
if modItemID ~= itemID then
if modItemID ~= itemID and modItemID ~= exactItemID then
search = SearchForObject("modItemID", modItemID, nil, true);
if #search > 0 then return search; end
end
Expand Down

0 comments on commit cd5ed28

Please sign in to comment.