mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Fix use of services as partition targets
This commit is contained in:
@@ -171,8 +171,13 @@ function Reconciler.reconcile(rbx, item, fileName, parent)
|
||||
end
|
||||
else
|
||||
if rbx.ClassName ~= "Folder" then
|
||||
rbx:Destroy()
|
||||
return Reconciler._reify(item, fileName, parent)
|
||||
-- Certain objects (services) can't be destroyed.
|
||||
-- If we target one of these, leave it alone!
|
||||
local ok = pcall(rbx.Destroy, rbx)
|
||||
|
||||
if ok then
|
||||
return Reconciler._reify(item, fileName, parent)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user