Fix typo in cl_xxx commands

This commit is contained in:
peelz
2022-08-08 20:40:47 -04:00
parent dd1b404c9b
commit eabc611a63

View File

@@ -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; }