fix
This commit is contained in:
@@ -423,10 +423,10 @@ namespace Barotrauma
|
|||||||
() =>
|
() =>
|
||||||
{
|
{
|
||||||
if (getValidArgs == null) return null;
|
if (getValidArgs == null) return null;
|
||||||
var result = env.CallFunction(getValidArgs, new object[] { });
|
var result = new LuaResult(env.CallFunction(getValidArgs, new object[] { }));
|
||||||
if (result == null || !(result is string[][])) { return null; }
|
var obj = result.Object();
|
||||||
return (string[][])result;
|
if (obj is string[][]) return (string[][])obj;
|
||||||
|
return null;
|
||||||
}, isCheat);
|
}, isCheat);
|
||||||
|
|
||||||
luaAddedCommand.Add(cmd);
|
luaAddedCommand.Add(cmd);
|
||||||
|
|||||||
Reference in New Issue
Block a user