Skip to content

Commit

Permalink
Merge pull request #27 from mstudio45/patch-1
Browse files Browse the repository at this point in the history
SaveManager.lua: Fixed loading getting randomly stuck.
  • Loading branch information
violin-suzutsuki authored Apr 29, 2023
2 parents 69491cd + 1284086 commit 1be38aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/SaveManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ local SaveManager = {} do

for _, option in next, decoded.objects do
if self.Parser[option.type] then
self.Parser[option.type].Load(option.idx, option)
task.spawn(function() self.Parser[option.type].Load(option.idx, option) end) -- task.spawn() so the config loading wont get stuck.
end
end

Expand Down Expand Up @@ -271,4 +271,4 @@ local SaveManager = {} do
SaveManager:BuildFolderTree()
end

return SaveManager
return SaveManager

0 comments on commit 1be38aa

Please sign in to comment.