refactoring and bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-09-03 07:47:40 +02:00
parent 0bae9079f9
commit 9826acf9bc
9 changed files with 56 additions and 49 deletions
+2 -2
View File
@@ -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)