Skip to content

Commit

Permalink
fabric: Improve command suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Sep 10, 2023
1 parent f8218d7 commit d0747d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
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);
Expand Down

0 comments on commit d0747d6

Please sign in to comment.