From cd5ed2893cd65d71d02ec35d6545935ce65bca34 Mon Sep 17 00:00:00 2001 From: ImUnicke Date: Mon, 28 Oct 2024 16:09:20 -0600 Subject: [PATCH] Retail: SearchForLink no longer repeats identical searches when searching for modItemID Retail: Source(s) group is now a bit more accurate in checking whether the Source contains the specified group --- AllTheThings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AllTheThings.lua b/AllTheThings.lua index bb8e3ef378..d8ad9eb195 100644 --- a/AllTheThings.lua +++ b/AllTheThings.lua @@ -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 @@ -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