From c4eedca28b15b27c7a9a3cd3e48a0f750a69c321 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Thu, 12 Jul 2018 15:00:06 -0300 Subject: [PATCH] Fix Sponge tab-complete again --- .../myles/ViaVersion/sponge/commands/SpongeCommandHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sponge/src/main/java/us/myles/ViaVersion/sponge/commands/SpongeCommandHandler.java b/sponge/src/main/java/us/myles/ViaVersion/sponge/commands/SpongeCommandHandler.java index 6a80a6b2e..10291f92c 100644 --- a/sponge/src/main/java/us/myles/ViaVersion/sponge/commands/SpongeCommandHandler.java +++ b/sponge/src/main/java/us/myles/ViaVersion/sponge/commands/SpongeCommandHandler.java @@ -27,7 +27,7 @@ public class SpongeCommandHandler extends ViaCommandHandler implements CommandCa } public List 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); }