This commit is contained in:
Evil Factory
2021-04-14 01:00:56 -03:00
parent d557b4491d
commit bb0ea74961
8 changed files with 851 additions and 58 deletions
@@ -37,7 +37,7 @@ namespace Barotrauma
if (s.EndsWith(".lua"))
{
Console.WriteLine(s);
lua.PrintMessage(s);
try
{
@@ -45,15 +45,7 @@ namespace Barotrauma
}
catch (Exception e)
{
if (e is InterpreterException)
{
Console.WriteLine(((InterpreterException)e).DecoratedMessage);
}
else
{
Console.WriteLine(e.ToString());
}
lua.HandleLuaException(e);
}
}