Skip to content

Commit 1501bc5

Browse files
committed
Fix #1858 - crash when adding a modifier to a jewel
This is the same issue as was fixed in abyss jewels in 9d42348. If there are no options in the crafting table, the "crafting table" option needs to be hidden, or there will be an error when trying to create the tooltip. For good measure, this patch also prevents the crash by checking that there's something in listMod before dereferencing it.
1 parent b897f1b commit 1501bc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/ItemsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
16131613
end)
16141614
end
16151615
end
1616-
if (self.build.targetVersion ~= "2_6" and self.displayItem.base.subType ~= "Abyss") or (self.displayItem.type ~= "Jewel" and self.displayItem.type ~= "Flask") then
1616+
if (self.build.targetVersion ~= "2_6" and self.displayItem.type ~= "Jewel") or (self.displayItem.type ~= "Jewel" and self.displayItem.type ~= "Flask") then
16171617
t_insert(sourceList, { label = "Crafting Bench", sourceId = "MASTER" })
16181618
end
16191619
if self.displayItem.type ~= "Jewel" and self.displayItem.type ~= "Flask" then

0 commit comments

Comments
 (0)