fix tabcomplete for brushes and possible many other commands

This commit is contained in:
wea_ondara 2020-10-11 13:28:47 +02:00 committed by Aurora
parent 6d45169d9d
commit b5f41501e4

View File

@ -850,7 +850,7 @@ public final class PlatformCommandManager {
event.setSuggestions(suggestions.stream()
.map(suggestion -> {
int noSlashLength = arguments.length() - 1;
int noSlashLength = arguments.length();
Substring original = suggestion.getReplacedArgument() == split.size()
? Substring.from(arguments, noSlashLength, noSlashLength)
: split.get(suggestion.getReplacedArgument());