diff --git a/sonic-radiance.love/core/debug.lua b/sonic-radiance.love/core/debug.lua index 0c1097a..17adcb8 100644 --- a/sonic-radiance.love/core/debug.lua +++ b/sonic-radiance.love/core/debug.lua @@ -28,12 +28,16 @@ local lovebird = require(cwd .. "libs.lovebird") function DebugSystem:new(controller, active) self.controller = controller - lovebird.update() self.active = active or false + if (self.active) then + lovebird.update() + end end function DebugSystem:update(dt) - lovebird.update(dt) + if (self.active) then + lovebird.update(dt) + end end -- PRINT FUNCTIONS