Replace BulkContinueOnLoad. Support Primal Nether properly (#21)
* BulkContinueOnLoad is no longer necessary or exists * Add primal nether as soulbound item so TSM handles it correctly * query calles iscached, removed redundancy * missed a then
This commit is contained in:
@@ -939,16 +939,14 @@ function private:LoadProfilesPage(container)
|
||||
end
|
||||
end
|
||||
|
||||
local bulkquerybuffer = {}
|
||||
for itemString, _ in pairs(TSM.db.profile.items) do
|
||||
-- check if item is cached
|
||||
local _,_,itemID = itemString:find("item:(%d+)")
|
||||
if itemID then
|
||||
local item = Item:CreateFromID(itemID)
|
||||
if not item:IsCached() then bulkquerybuffer[#bulkquerybuffer+1] = item.itemID end
|
||||
item:Query()
|
||||
end
|
||||
end
|
||||
TSMAPI:BulkQuery(bulkquerybuffer)
|
||||
|
||||
return profiles
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user