From 931c46b148861c7245f9b5765d6f83199d496bf6 Mon Sep 17 00:00:00 2001 From: Regisle <49933620+Regisle@users.noreply.github.com> Date: Sat, 31 Aug 2024 01:41:31 +0930 Subject: [PATCH] Fix Eldritch Implicit Mod Replacement (#8265) --- src/Classes/ItemsTab.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index fdc24f5406..67c9da1147 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -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 })