diff --git a/Lync/RobloxPluginSource/Plugin.lua b/Lync/RobloxPluginSource/Plugin.lua index 2683d1b..5e1ca90 100644 --- a/Lync/RobloxPluginSource/Plugin.lua +++ b/Lync/RobloxPluginSource/Plugin.lua @@ -975,16 +975,6 @@ function buildPath(path: string) end function buildAll() - -- Build place file - local sortedPaths = {} - for path in pairs(map.tree) do - table.insert(sortedPaths, path) - end - table.sort(sortedPaths) - for _, path in sortedPaths do - buildPath(path) - end - -- Assign collision groups if map.info.CollisionGroups then if serverKey == "BuildScript" then @@ -994,6 +984,16 @@ function buildAll() setCollisionGroups() end end + + -- Build place file + local sortedPaths = {} + for path in pairs(map.tree) do + table.insert(sortedPaths, path) + end + table.sort(sortedPaths) + for _, path in sortedPaths do + buildPath(path) + end end --offline-end