Skip to content

Commit

Permalink
Fixed unintended conversion of 0 to "0" for non-existent items
Browse files Browse the repository at this point in the history
  • Loading branch information
emrus-main authored and Rottenbeer committed Sep 26, 2024
1 parent 02378d6 commit b6865f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,11 @@ function ItemRack.GetID(bag,slot)
if ItemRack.AppendRuneID then
runeSuffix = ItemRack.AppendRuneID(bag,slot)
end
return ItemRack.GetIRString(itemLink)..runeSuffix
if runeSuffix ~= "" then
return ItemRack.GetIRString(itemLink)..runeSuffix
else
return ItemRack.GetIRString(itemLink)
end
end

-- takes two ItemRack-style IDs (one or both of the parameters can be a baseID instead if needed) and returns true if those items share the same base itemID
Expand Down

0 comments on commit b6865f2

Please sign in to comment.