Special-case Lighting.Technology in setCanonicalProperty, temporary fix

This commit is contained in:
Lucien Greathouse
2019-03-29 17:25:57 -07:00
parent 913ac7c9f5
commit 6db714a2b1
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,11 @@ local function setCanonicalProperty(instance, key, value)
return
end
-- Temporary workaround for fixing issue #141 in this specific case.
if instance.ClassName == "Lighting" and key == "Technology" then
return
end
-- If we don't have permissions to access this value at all, we can skip it.
local readSuccess, existingValue = pcall(function()
return instance[key]