From eabc611a63f0a09cb06e1ac153ce5edc9aa23712 Mon Sep 17 00:00:00 2001 From: peelz Date: Mon, 8 Aug 2022 20:40:47 -0400 Subject: [PATCH] Fix typo in cl_xxx commands --- Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs b/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs index 3ea948231..d52053c6e 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/DebugConsole.cs @@ -3256,7 +3256,8 @@ namespace Barotrauma } }); - commands.Add(new Command("cl_lua", "lua_cl: runs a string on the client", (string[] args) => + const string CMD_CL_LUA = "cl_lua"; + commands.Add(new Command(CMD_CL_LUA, $"{CMD_CL_LUA}: runs a string on the client", (string[] args) => { if (GameMain.Client != null && !GameMain.Client.HasPermission(ClientPermissions.ConsoleCommands)) { @@ -3273,7 +3274,9 @@ namespace Barotrauma GameMain.LuaCs.HandleException(ex, LuaCsMessageOrigin.LuaMod); } })); - commands.Add(new Command("cl_cs", "cs_cl: runs a string on the client", (string[] args) => + + const string CMD_CL_CS = "cl_cs"; + commands.Add(new Command(CMD_CL_CS, $"{CMD_CL_CS}: runs a string on the client", (string[] args) => { if (LuaCsSetup.GetPackage("CsForBarotrauma", false, true) == null) { return; }