From b6865f29f8c0af12cafc24efa2383f02b08d7317 Mon Sep 17 00:00:00 2001 From: Emrus Date: Mon, 22 Apr 2024 17:35:46 +0200 Subject: [PATCH] Fixed unintended conversion of 0 to "0" for non-existent items --- ItemRack/ItemRack.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ItemRack/ItemRack.lua b/ItemRack/ItemRack.lua index 0366e58..bd347a2 100644 --- a/ItemRack/ItemRack.lua +++ b/ItemRack/ItemRack.lua @@ -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