fix: mailbox item counter

This commit is contained in:
Vati
2026-04-06 00:31:56 +04:00
parent d48a4932db
commit f0d0227c8e
3 changed files with 102 additions and 83 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ local function CountFromSavedMailbox(mailboxData, itemID)
count = count + (item.count or 1)
elseif not slotItemID and item.name then
-- Fallback to name matching if link is missing
local targetName = GetItemInfo(itemID)
local targetName = GetItemInfo("item:" .. itemID .. ":0:0:0")
if targetName == item.name then
count = count + (item.count or 1)
end