Skip to content

Commit

Permalink
Added shortcircut for item loading loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Mar 19, 2024
1 parent a077745 commit d589ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,11 @@ end
-- all bags are done loading.
function items:ProcessContainer()
local loaded = false
local count = 0
repeat
loaded = self._container:ContinueOnLoad(function() self:BackpackLoadFunction() end)
until loaded
count = count + 1
until loaded or count > 2
end

function items:BankLoadFunction()
Expand Down

0 comments on commit d589ca0

Please sign in to comment.