Skip to content

Commit

Permalink
AddContinuables isn't available in classic
Browse files Browse the repository at this point in the history
Fixes #299
  • Loading branch information
kemayo committed Oct 19, 2024
1 parent e0148b3 commit 2cecd71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ function ns.Loot.OnceAllLootLoaded(id, isTreasure, callback)
end
if #continuableLoot == 0 then return callback(loot) end
local continuableContainer = ContinuableContainer:Create()
continuableContainer:AddContinuables(continuableLoot)
-- AddContinuables isn't available in classic, so we need to do this:
for _, continuable in pairs(continuableLoot) do
continuableContainer:AddContinuable(continuable)
end
continuableContainer:ContinueOnLoad(function() callback(loot) end)
end
do
Expand Down

0 comments on commit 2cecd71

Please sign in to comment.