You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.
Currently if you are missing any item (using a 2h, missing offhand) it error's out.
The problem is that itemString is nil when there is no equipped item and is then passed to "GetItemInfo(itemString)", causing the error.
A quick fix is just making sure there is an item equipped before calling the function,
inside ItemLevelOverlay.lua, line 24:
local function getInventoryItemLevelFromInventorySlotName(inventorySlotName)
local inventorySlotNumber = select(1, GetInventorySlotInfo(inventorySlotName))
local inventoryItemLink = GetInventoryItemLink("player", inventorySlotNumber)
if inventoryItemLink then
return ItemUpgradeInfo:GetUpgradedItemLevel(inventoryItemLink)
else
return nil
end
end
The text was updated successfully, but these errors were encountered:
Currently if you are missing any item (using a 2h, missing offhand) it error's out.
The problem is that itemString is nil when there is no equipped item and is then passed to "GetItemInfo(itemString)", causing the error.
A quick fix is just making sure there is an item equipped before calling the function,
inside ItemLevelOverlay.lua, line 24:
local function getInventoryItemLevelFromInventorySlotName(inventorySlotName)
local inventorySlotNumber = select(1, GetInventorySlotInfo(inventorySlotName))
local inventoryItemLink = GetInventoryItemLink("player", inventorySlotNumber)
if inventoryItemLink then
return ItemUpgradeInfo:GetUpgradedItemLevel(inventoryItemLink)
else
return nil
end
end
The text was updated successfully, but these errors were encountered: