diff --git a/docs/changelog.md b/docs/changelog.md index 3441040c..23d8770a 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixes an issue with controller loading + ## [9.0.0-rc9] - 2024-09-21 ### Fixed diff --git a/src/init.luau b/src/init.luau index 8d1b4d09..9fe5eb4a 100644 --- a/src/init.luau +++ b/src/init.luau @@ -107,7 +107,7 @@ end [Learn More](https://luminlabsdev.github.io/framework/api/#start) ]=] local function Start(loaded: { Types.Controller }, callback: (() -> ())?) - Debugger.Assert(Started, "AlreadyStarted") + Debugger.Assert(not Started, "AlreadyStarted") LoadAllControllers(loaded) -- Yields until they are loaded StartCycles() @@ -128,7 +128,7 @@ end [Learn More](https://luminlabsdev.github.io/framework/api/#new) ]=] local function New(members: Types.Controller): T - Debugger.Assert(Started, "AlreadyStarted") + Debugger.Assert(not Started, "AlreadyStarted") table.insert(Storage.Controllers, members) return members end @@ -139,8 +139,8 @@ end [Learn More](https://luminlabsdev.github.io/framework/api/#cycle) ]=] local function Cycle(type: Types.CycleType, callback: (...any) -> ()) - Debugger.Assert(Started, "AlreadyStarted") - Debugger.Assert(not DefaultCycleTypes[type], "ItemNotFound", type) + Debugger.Assert(not Started, "AlreadyStarted") + Debugger.Assert(DefaultCycleTypes[type], "ItemNotFound", type) if type == "PreRender" and not RunService:IsClient() then Debugger.Fatal("IncorrectContext", "WorkerType") end diff --git a/wally.toml b/wally.toml index db418ab1..d2dbb2a0 100644 --- a/wally.toml +++ b/wally.toml @@ -1,13 +1,13 @@ [package] name = "lumin/framework" description = "A lightning fast & amazing game framework for Roblox" -version = "9.0.0-rc9" +version = "9.0.0-rc10" license = "MIT" registry = "https://github.com/UpliftGames/wally-index" realm = "shared" [dependencies] -debugger = "lumin/debugger@^0.3.0" +debugger = "lumin/debugger@^0.4.0" spawn = "red-blox/spawn@^1.0.0" [dev-dependencies]