3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00

Fix Sponge tab-complete again

Dieser Commit ist enthalten in:
creeper123123321 2018-07-12 15:00:06 -03:00
Ursprung 9ac3110d3e
Commit c4eedca28b
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.split(" "); // ViaCommandHandler handles empty String in array String[] args = arguments.split(" ", -1); // ViaCommandHandler handles empty String in array. -1: do not discard empty strings
return onTabComplete(new SpongeCommandSender(source), args); return onTabComplete(new SpongeCommandSender(source), args);
} }