diff options
Diffstat (limited to 'server-beta/src/workspace/workspace.lua')
-rw-r--r-- | server-beta/src/workspace/workspace.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server-beta/src/workspace/workspace.lua b/server-beta/src/workspace/workspace.lua index f320cef6..b22bcfb8 100644 --- a/server-beta/src/workspace/workspace.lua +++ b/server-beta/src/workspace/workspace.lua @@ -116,6 +116,20 @@ function m.preload() end) end) + while true do + local count = 0 + for _, file in pairs(files.fileMap) do + if file.compiling then + task.sleep(0.1) + goto CONTINUE + end + count = count + 1 + end + log.info(('Preloaded %d files.'):format(count)) + break + ::CONTINUE:: + end + log.info('Preload finish.') end |