From b20dad57feaac2f07c34e78f9b65e7a83f037fc0 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Thu, 14 Jun 2018 13:24:42 -0300 Subject: [PATCH] Fix tab completion on Sponge --- .../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 109c56601..6a80a6b2e 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.length() > 0 ? arguments.split(" ") : new String[0]; + String[] args = arguments.split(" "); // ViaCommandHandler handles empty String in array return onTabComplete(new SpongeCommandSender(source), args); }