Skip to content

Commit

Permalink
Improve function ABI compatibility (#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Sep 5, 2019
1 parent 2b81b8f commit ae83f58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/ch/njol/skript/lang/function/Function.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public Parameter<?>[] getParameters() {
return sign.getParameters();
}

@SuppressWarnings("null")
public Parameter<?> getParameter(int index) {
return getParameters()[index];
}

public boolean isSingle() {
return sign.isSingle();
}
Expand Down

0 comments on commit ae83f58

Please sign in to comment.