[NOTHING CHANGED] Move to maven and massive clean and fixup #93

Closed
farmboy0 wants to merge 43 commits from farmboy0/master into master
Showing only changes of commit 11ec746838 - Show all commits

View File

@@ -424,8 +424,8 @@ public class DebugLib extends TwoArgFunction {
static final class upvalueid extends VarArgFunction { static final class upvalueid extends VarArgFunction {
@Override @Override
public Varargs invoke(Varargs args) { public Varargs invoke(Varargs args) {
LuaValue func = args.checkfunction(1);
int up = args.checkint(2); int up = args.checkint(2);
LuaValue func = args.checkfunction(1);
if (func instanceof LuaClosure) { if (func instanceof LuaClosure) {
LuaClosure c = (LuaClosure) func; LuaClosure c = (LuaClosure) func;
if (c.upValues != null && up > 0 && up <= c.upValues.length) { if (c.upValues != null && up > 0 && up <= c.upValues.length) {