Fix typo in cl_xxx commands
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user