Fix Game.AssignOnExecute having command arguments be passed as varargs instead of a table
This commit is contained in:
@@ -448,8 +448,10 @@ namespace Barotrauma.LuaCs
|
|||||||
|
|
||||||
public bool IsDisposed => throw new NotImplementedException();
|
public bool IsDisposed => throw new NotImplementedException();
|
||||||
|
|
||||||
public void AssignOnExecute(string names, LuaCsAction onExecute) =>
|
public void AssignOnExecute(string names, object onExecute) => DebugConsole.AssignOnExecute(names, (string[] args) =>
|
||||||
_consoleCommands.AssignOnExecute(names, args => onExecute(args));
|
{
|
||||||
|
LuaCsSetup.Instance.LuaScriptManagementService.CallFunctionSafe(onExecute, new object[] { args });
|
||||||
|
});
|
||||||
|
|
||||||
public void SaveGame(string path)
|
public void SaveGame(string path)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user