Skip to content

Commit

Permalink
Fix inconsistent api in commandcontext.getSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 30, 2021
1 parent f42a3ed commit 385b506
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -233,8 +233,8 @@ else if (sender instanceof BlockCommandSender)
}

public String[] getSlice(int index) {
String[] slice = new String[args.length - index];
System.arraycopy(args, index, slice, 0, args.length - index);
String[] slice = new String[args.length - index - 1];
System.arraycopy(args, index + 1, slice, 0, args.length - index - 1);
return slice;
}

Expand Down

0 comments on commit 385b506

Please sign in to comment.