added delay

This commit is contained in:
Chr1Z93 2023-10-15 09:45:16 +02:00
parent c5e87b1e46
commit c565a70fb5

View File

@ -145,8 +145,10 @@ function onLoad(savedData)
getModVersion() getModVersion()
math.randomseed(os.time()) math.randomseed(os.time())
-- initialization of loadable objects library -- initialization of loadable objects library (delay to let Navigation Overlay build)
Wait.time(function()
requestObj = WebRequest.get(SOURCE_REPO .. '/library.json', completed_list_update) requestObj = WebRequest.get(SOURCE_REPO .. '/library.json', completed_list_update)
end, 1)
end end
-- Event hook for any object search. When chaos tokens are manipulated while the chaos bag -- Event hook for any object search. When chaos tokens are manipulated while the chaos bag