fabric: Improve command suggestions

This commit is contained in:
William278 committed 2023-09-10 16:47:51 +03:00
1 parent f8218d78a2
commit d0747d6668
1 file changed
+1 -1
@@ -101,7 +101,7 @@ public class FabricCommand {
return (context, builder) -> com.mojang.brigadier.suggestion.Suggestions.empty();
}
return (context, builder) -> {
final String[] args = command.removeFirstArg(context.getInput().split(" "));
final String[] args = command.removeFirstArg(context.getInput().split(" ", -1));
provider.getSuggestions(resolveExecutor(context.getSource()), args).stream()
.map(suggestion -> {
final String completedArgs = String.join(" ", args);