make command cl_reloadlua freely usable

This commit is contained in:
Evil Factory
2022-06-20 18:32:54 -03:00
parent 64c81146fb
commit 3976fc8f64

View File

@@ -3289,12 +3289,6 @@ namespace Barotrauma
commands.Add(new Command("cl_reloadlua", "reloads lua on the client", (string[] args) =>
{
if (GameMain.Client != null && !GameMain.Client.HasPermission(ClientPermissions.ConsoleCommands))
{
ThrowError("Command not permitted.");
return;
}
GameMain.LuaCs.Initialize();
}));
}