3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 08:10:09 +01:00

Fix tab completion on Sponge

Dieser Commit ist enthalten in:
creeper123123321 2018-06-14 13:24:42 -03:00
Ursprung 05617a95b7
Commit b20dad57fe
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1

Datei anzeigen

@ -27,7 +27,7 @@ public class SpongeCommandHandler extends ViaCommandHandler implements CommandCa
} }
public List<String> getSuggestions(CommandSource source, String arguments) throws CommandException { 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); return onTabComplete(new SpongeCommandSender(source), args);
} }