mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
fabric: Improve command suggestions
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user