bugfix
This commit is contained in:
@@ -102,9 +102,8 @@ function private.scan_wdb()
|
|||||||
while processed <= 100 and item_id <= MAX_ITEM_ID do
|
while processed <= 100 and item_id <= MAX_ITEM_ID do
|
||||||
local itemstring = 'item:'..item_id
|
local itemstring = 'item:'..item_id
|
||||||
local name, _, quality, level, class, subclass, max_stack, slot, texture = GetItemInfo(itemstring)
|
local name, _, quality, level, class, subclass, max_stack, slot, texture = GetItemInfo(itemstring)
|
||||||
name = name and strlower(name)
|
if name and not aux_item_ids[strlower(name)] then
|
||||||
if name and not aux_item_ids[name] then
|
aux_item_ids[strlower(name)] = item_id
|
||||||
aux_item_ids[name] = item_id
|
|
||||||
aux_items[item_id] = Aux.util.join({
|
aux_items[item_id] = Aux.util.join({
|
||||||
name,
|
name,
|
||||||
quality or '',
|
quality or '',
|
||||||
@@ -117,7 +116,7 @@ function private.scan_wdb()
|
|||||||
}, '#')
|
}, '#')
|
||||||
local tooltip = Aux.info.tooltip(function(tt) tt:SetHyperlink(itemstring) end)
|
local tooltip = Aux.info.tooltip(function(tt) tt:SetHyperlink(itemstring) end)
|
||||||
if Aux.info.auctionable(tooltip, quality) then
|
if Aux.info.auctionable(tooltip, quality) then
|
||||||
tinsert(aux_auctionable_items, name)
|
tinsert(aux_auctionable_items, strlower(name))
|
||||||
end
|
end
|
||||||
processed = processed + 1
|
processed = processed + 1
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user