mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-28 00:26:41 +00:00
Fix security permission error (#619)
This commit is contained in:
@@ -115,9 +115,13 @@ local function diff(instanceMap, virtualInstances, rootId)
|
|||||||
local childId = instanceMap.fromInstances[childInstance]
|
local childId = instanceMap.fromInstances[childInstance]
|
||||||
|
|
||||||
if childId == nil then
|
if childId == nil then
|
||||||
if childInstance.Archivable == false then
|
-- pcall to avoid security permission errors
|
||||||
|
local success, skip = pcall(function()
|
||||||
-- We don't remove instances that aren't going to be saved anyway,
|
-- We don't remove instances that aren't going to be saved anyway,
|
||||||
-- such as the Rojo session lock value.
|
-- such as the Rojo session lock value.
|
||||||
|
return childInstance.Archivable == false
|
||||||
|
end)
|
||||||
|
if success and skip then
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user