mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 14:45:56 +00:00
Work around plugins loading too early by searching for DevSettings via ChildAdded
This commit is contained in:
@@ -35,6 +35,16 @@ end
|
|||||||
|
|
||||||
local valueContainer = getValueContainer()
|
local valueContainer = getValueContainer()
|
||||||
|
|
||||||
|
game.ChildAdded:Connect(function(child)
|
||||||
|
local success, name = pcall(function()
|
||||||
|
return child.Name
|
||||||
|
end)
|
||||||
|
|
||||||
|
if success and name == CONTAINER_NAME then
|
||||||
|
valueContainer = child
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
local function getStoredValue(name)
|
local function getStoredValue(name)
|
||||||
if valueContainer == nil then
|
if valueContainer == nil then
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user