🐛 Fix brigadier suggestion building

An offset will be added pointing to the last occurrence of a blank space. This fixes incorrect tab completions for greedy strings
This commit is contained in:
Alexander Söderberg 2020-10-13 19:53:01 +02:00
parent 5f466fcbc0
commit 06a34651bf
No known key found for this signature in database
GPG key ID: FACEA5B0F4C1BF80
3 changed files with 26 additions and 3 deletions

View file

@ -34,6 +34,7 @@ import java.util.LinkedList;
* {@link Caption} instances for messages in cloud-bukkit
*/
public final class BukkitCaptionKeys {
private static final Collection<Caption> RECOGNIZED_CAPTIONS = new LinkedList<>();
/**