Skip to content

Commit

Permalink
fix(forge16): update paramater count to be 2 not 3
Browse files Browse the repository at this point in the history
skip-ci
  • Loading branch information
danorris709 committed Sep 26, 2022
1 parent 4ecfe53 commit 03b84ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private ForgeCommand createCommand(Class<?> clazz, Object instance) throws Comma
TabCompletions tabCompletions = declaredMethod.getAnnotation(TabCompletions.class);

if (tabCompletions != null) {
if (declaredMethod.getReturnType().equals(List.class) && declaredMethod.getParameterCount() == 3) {
if (declaredMethod.getReturnType().equals(List.class) && declaredMethod.getParameterCount() == 2) {
Object finalInstance = instance;
tabCompleter = (sender, args) -> {
try {
Expand Down

0 comments on commit 03b84ed

Please sign in to comment.