Fix tab completion on Sponge

This commit is contained in:
creeper123123321 2018-06-14 13:24:42 -03:00
parent 05617a95b7
commit b20dad57fe
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class SpongeCommandHandler extends ViaCommandHandler implements CommandCa
}
public List<String> getSuggestions(CommandSource source, String arguments) throws CommandException {
String[] args = arguments.length() > 0 ? arguments.split(" ") : new String[0];
String[] args = arguments.split(" "); // ViaCommandHandler handles empty String in array
return onTabComplete(new SpongeCommandSender(source), args);
}