Skip to content

Commit

Permalink
fix: EvalLua argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Feb 28, 2025
1 parent bbaf0e6 commit 364a800
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static void EvalLua(CommandLine commandLine, int studioLine, string file
return;
}

var ctx = LuaContext.Compile(commandLine.Arguments[0], CommandName);
var ctx = LuaContext.Compile(string.Join(commandLine.ArgumentSeparator, commandLine.Arguments), CommandName);
if (ctx.Failure) {
AbortTas($"Invalid Lua code: {ctx.Error}");
return;
Expand Down

0 comments on commit 364a800

Please sign in to comment.