From 94720618628610b66bbd277a1b2e6e7651af8c3e Mon Sep 17 00:00:00 2001 From: igromanru Date: Mon, 21 Oct 2024 11:26:17 +0200 Subject: [PATCH] refactor: comment out debug text --- scripts/CommandsManager.lua | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/scripts/CommandsManager.lua b/scripts/CommandsManager.lua index f983ab3..a3e95d2 100644 --- a/scripts/CommandsManager.lua +++ b/scripts/CommandsManager.lua @@ -1469,19 +1469,20 @@ CreateCommand({ "deleteobject", "removeobject" }, "Delete Object Trace", "Delete RegisterProcessConsoleExecPreHook(function(Context, Command, Parameters, OutputDevice, Executor) local context = Context:get() -- local executor = Executor:get() - if DebugMode then - LogDebug("[ProcessConsoleExec]:") - LogDebug("Context: " .. context:GetFullName()) - LogDebug("Context.Class: " .. context:GetClass():GetFullName()) - LogDebug("Command: " .. Command) - LogDebug("Parameters: " .. #Parameters) - for i = 1, #Parameters, 1 do - LogDebug(" " .. i .. ": " .. Parameters[i]) - end - -- if executor:IsValid() then - -- LogDebug("Executor: " .. executor:GetClass():GetFullName()) - -- end - end + + -- if DebugMode then + -- LogDebug("[ProcessConsoleExec]:") + -- LogDebug("Context: " .. context:GetFullName()) + -- LogDebug("Context.Class: " .. context:GetClass():GetFullName()) + -- LogDebug("Command: " .. Command) + -- LogDebug("Parameters: " .. #Parameters) + -- for i = 1, #Parameters, 1 do + -- LogDebug(" " .. i .. ": " .. Parameters[i]) + -- end + -- -- if executor:IsValid() then + -- -- LogDebug("Executor: " .. executor:GetClass():GetFullName()) + -- -- end + -- end local IsDedicatedServer = AFUtils.IsDedicatedServer() if (IsDedicatedServer and not context:IsA(AFUtils.GetClassAbiotic_Survival_GameMode_C())) or (not IsDedicatedServer and not context:IsA(AFUtils.GetClassAbioticGameViewportClient())) then