Skip to content

Commit

Permalink
Set collision groups before syncing place
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Mar 4, 2024
1 parent a413194 commit c8ee220
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Lync/RobloxPluginSource/Plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c8ee220

Please sign in to comment.