Skip to content

Commit 3975eef

Browse files
committed
Dont wipe enchant modlines when adding corrupted mod
1 parent bee1726 commit 3975eef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ end
23342334
function ItemsTabClass:getAnoint(item)
23352335
local result = { }
23362336
if item then
2337-
for _, modList in ipairs{item.enchantModLines, item.implicitModLines, item.explicitModLines} do
2337+
for _, modList in ipairs{item.enchantModLines} do
23382338
for _, mod in ipairs(modList) do
23392339
local line = mod.line
23402340
local anoint = line:find("Allocates ([a-zA-Z ]+)")
@@ -2532,7 +2532,6 @@ function ItemsTabClass:CorruptDisplayItem() -- todo implement vaal orb new outco
25322532
table.sort(newEnchant, function(a, b)
25332533
return a.order < b.order
25342534
end)
2535-
wipeTable(item.enchantModLines)
25362535
for i, enchant in ipairs(newEnchant) do
25372536
enchant.order = nil
25382537
t_insert( item.enchantModLines, i, enchant)

0 commit comments

Comments
 (0)