refactoring and bugfix
This commit is contained in:
+2
-2
@@ -190,11 +190,11 @@ end
|
||||
function public.populate_wdb(item_id)
|
||||
item_id = item_id or MIN_ITEM_ID
|
||||
if item_id > MAX_ITEM_ID then
|
||||
log 'Cache populated.'
|
||||
print 'Cache populated.'
|
||||
return
|
||||
end
|
||||
if not GetItemInfo('item:'..item_id) then
|
||||
log('Fetching item '..item_id..'.')
|
||||
print('Fetching item '..item_id..'.')
|
||||
AuxTooltip:SetHyperlink('item:'..item_id)
|
||||
end
|
||||
thread(populate_wdb, item_id + 1)
|
||||
|
||||
Reference in New Issue
Block a user