mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Use ANSI serializer for console completion descriptions (#9351)
This commit is contained in:
parent
8d5fa4f1ee
commit
3477dbf4aa
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+
|
+
|
||||||
+ private static @NonNull Candidate toCandidate(final @NonNull Completion completion) {
|
+ private static @NonNull Candidate toCandidate(final @NonNull Completion completion) {
|
||||||
+ final String suggestionText = completion.suggestion();
|
+ final String suggestionText = completion.suggestion();
|
||||||
+ final String suggestionTooltip = PaperAdventure.PLAIN.serializeOr(completion.tooltip(), null);
|
+ final String suggestionTooltip = PaperAdventure.ANSI_SERIALIZER.serializeOr(completion.tooltip(), null);
|
||||||
+ return new Candidate(
|
+ return new Candidate(
|
||||||
+ suggestionText,
|
+ suggestionText,
|
||||||
+ suggestionText,
|
+ suggestionText,
|
||||||
|
|
Loading…
Reference in a new issue