Fix client-side commands working when they shouldn't

This commit is contained in:
EvilFactory
2022-10-28 15:14:43 -03:00
parent d88a6b5ef0
commit 09979cb4c9
4 changed files with 30 additions and 9 deletions
@@ -1251,7 +1251,7 @@ namespace Barotrauma
}));
commands.Add(new Command("lua", "lua: runs a string", (string[] args) =>
commands.Add(new Command("lua", "lua: Runs a string.", (string[] args) =>
{
try
{
@@ -1262,7 +1262,7 @@ namespace Barotrauma
GameMain.LuaCs.HandleException(ex, LuaCsMessageOrigin.LuaMod);
}
}));
commands.Add(new Command("cs", "cs: Runs a string", (string[] args) =>
commands.Add(new Command("cs", "cs: Runs a string.", (string[] args) =>
{
if (LuaCsSetup.GetPackage(LuaCsSetup.CsForBarotraumaId, false, true) == null) { return; }