Skip to content

Commit 0fe3655

Browse files
committed
FIX: only run gsub if slotNum is not 1
Signed-off-by: Paliak <91493239+Paliak@users.noreply.github.com>
1 parent 0416e59 commit 0fe3655

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Classes/Item.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,10 @@ end
13731373

13741374
-- Build list of modifiers in a given slot number while applying local modifiers and adding quality
13751375
function ItemClass:BuildModListForSlotNum(baseList, slotNum)
1376-
local slotName = self:GetPrimarySlot():gsub("1", tostring(slotNum))
1376+
local slotName = self:GetPrimarySlot()
1377+
if slotNum ~= 1 then
1378+
slotName = slotName:gsub("1", tostring(slotNum))
1379+
end
13771380
local modList = new("ModList")
13781381
for _, baseMod in ipairs(baseList) do
13791382
local mod = copyTable(baseMod)

0 commit comments

Comments
 (0)