From 99a967eb5cc10a99dfa0113473d6dbf5fd4b5bea Mon Sep 17 00:00:00 2001 From: ccuser44 <68124053+ccuser44@users.noreply.github.com> Date: Sun, 24 Nov 2024 11:58:17 +0200 Subject: [PATCH] Only show command errors during debugmode (#1763) --- MainModule/Server/Core/Process.luau | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MainModule/Server/Core/Process.luau b/MainModule/Server/Core/Process.luau index 6520d11d4..4b65e1b3a 100644 --- a/MainModule/Server/Core/Process.luau +++ b/MainModule/Server/Core/Process.luau @@ -283,11 +283,11 @@ return function(Vargs, GetEnv) end if rateExceeded and not ratePass then - rateExceeded:fire(rateKey, rateCache.Rate, maxRate) + rateExceeded:Fire(rateKey, rateCache.Rate, maxRate) end if ratePassed and ratePass then - ratePassed:fire(rateKey, rateCache.Rate, maxRate) + ratePassed:Fire(rateKey, rateCache.Rate, maxRate) end return ratePass, didThrottle, canThrottle, rateCache.Rate, maxRate, throttleResetOs @@ -592,7 +592,9 @@ return function(Vargs, GetEnv) Remote.MakeGui(p, "Output", { Message = cmdError, }) - warn(`Encountered an error while running a command: {msg}\n{cmdError}\n{debug.traceback()}`) + if Core.DebugMode == true then + warn(`Encountered an error while running a command: {msg}\n{cmdError}\n{debug.traceback()}`) + end end elseif cmdError ~= nil and cmdError ~= true and not isSystem then Remote.MakeGui(p, "Output", {