use cs package from backup packages

This commit is contained in:
Evil Factory
2022-04-29 14:00:53 -03:00
parent be76cd5f35
commit af47136bbd
6 changed files with 18 additions and 7 deletions

View File

@@ -3228,7 +3228,7 @@ namespace Barotrauma
}));
commands.Add(new Command("cl_cs", "cs_cl: runs a string on the client", (string[] args) =>
{
if (LuaCsSetup.GetPackage("CsForBarotrauma", false) == null) { return; }
if (LuaCsSetup.GetPackage("CsForBarotrauma", false, true) == null) { return; }
if (GameMain.Client != null && !GameMain.Client.HasPermission(ClientPermissions.ConsoleCommands))
{