fix: sorting quiver, ammo fixed

This commit is contained in:
Salikh Gurgenidze
2025-11-19 17:35:38 +04:00
parent 8a885d0ad9
commit a6957fc16a
3 changed files with 151 additions and 93 deletions
+6 -1
View File
@@ -36,7 +36,12 @@ function EquipmentScanner:ScanEquippedItems()
local itemLink = GetInventoryItemLink("player", slotID)
if itemLink then
local itemName = GetItemInfo(itemLink)
-- Extract itemID from link
local _, _, itemID = string.find(itemLink, "item:(%d+)")
local itemName
if itemID then
itemName = GetItemInfo(tonumber(itemID))
end
equipped[slotName] = {
link = itemLink,
name = itemName,