Skip to content

Commit

Permalink
Replace reference due to security context
Browse files Browse the repository at this point in the history
  • Loading branch information
devSparkle committed Sep 8, 2023
1 parent 5212b8c commit 69894b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Overture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local Libraries: {[string]: ModuleScript} = {}
@ignore
]=]
local function Retrieve(InstanceName: string, InstanceClass: string, InstanceParent: Instance, ForceWait: boolean?): Instance
if ForceWait and not RunService:IsEdit() then
if ForceWait and RunService:IsRunning() then
return InstanceParent:WaitForChild(InstanceName)
end

Expand Down Expand Up @@ -193,7 +193,7 @@ function Overture:Get(InstanceClass: string, InstanceName: string, Parent: Insta

if Item then
return Item
elseif RunService:IsServer() or RunService:IsEdit() then
elseif RunService:IsServer() or not RunService:IsRunning() then
return Retrieve(InstanceName, InstanceClass, SetFolder)
else
return SetFolder:WaitForChild(InstanceName)
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "devsparkle/overture"
description = "Source code management engine for Roblox"
version = "2.2.2"
version = "2.2.3"
license = "MIT"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
Expand Down

0 comments on commit 69894b3

Please sign in to comment.