fix formatting in lua require and better error handling with dofile,loadfile,etc
This commit is contained in:
@@ -3224,7 +3224,14 @@ namespace Barotrauma
|
||||
return;
|
||||
}
|
||||
|
||||
GameMain.LuaCs.Lua.DoString(string.Join(" ", args));
|
||||
try
|
||||
{
|
||||
GameMain.LuaCs.Lua.DoString(string.Join(" ", args));
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
GameMain.LuaCs.HandleException(ex);
|
||||
}
|
||||
}));
|
||||
commands.Add(new Command("cl_cs", "cs_cl: runs a string on the client", (string[] args) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user