Fix scripting system to provide more information in errors

Also make log lines for scripting more uniform
This commit is contained in:
breadbyte 2022-10-20 20:05:36 +08:00
parent 0e7423d1d9
commit 78f9c35800
No known key found for this signature in database
GPG key ID: 81897669486FFAFC
4 changed files with 19 additions and 14 deletions

View file

@ -158,7 +158,7 @@ namespace MinecraftClient.ChatBots
{
try
{
CSharpRunner.Run(this, lines, args, localVars);
CSharpRunner.Run(this, lines, args, localVars, scriptName: file!);
}
catch (CSharpException e)
{