Skip to content

Commit

Permalink
Fix Eldritch Implicit Mod Replacement (#8265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle committed Aug 30, 2024
1 parent 7d750c4 commit 931c46b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3032,15 +3032,15 @@ function ItemsTabClass:AddImplicitToDisplayItem()
local listMod = modList[modGroups[controls.modGroupSelect.selIndex].modListIndex][controls.modSelect.selIndex]
local index
for i, implicitMod in ipairs(item.implicitModLines) do
if implicitMod[listMod.type] and implicitMod[listMod.type] == "{"..listMod.type.."}" then
if implicitMod[listMod.type] then
index = i
break
end
end
if index then
for i, line in ipairs(listMod.mod) do
item.implicitModLines[index + i - 1] = { line = line, modTags = listMod.mod.modTags, [listMod.type] = true }
end
item.implicitModLines[index + i - 1] = { line = line, modTags = listMod.mod.modTags, [listMod.type] = true }
end
else
for _, line in ipairs(listMod.mod) do
t_insert(item.implicitModLines, { line = line, modTags = listMod.mod.modTags, [listMod.type] = true })
Expand Down

0 comments on commit 931c46b

Please sign in to comment.