Bugfix: BulkQuery->QueryTicker spammed errors if items list was empty (#13)

This commit is contained in:
Xan-Asc
2024-04-06 10:32:06 -07:00
committed by GitHub
parent a23e8cdb4f
commit 2fe75e4472
+1
View File
@@ -716,6 +716,7 @@ end
-- Bulk load uncached IDs. Divides in to buckets of 50
function TSMAPI:BulkQuery(items)
if not items or #items == 0 then return end
self.QueryTicker = Timer.NewTicker(1, function()
Item:BulkContinueOnLoad(table.take(items, 50), function(id) end, function(id) return GetItemInfo(id) == nil end) -- 3rd parameter (validator) is optional
if #items == 0 then