13
0
geforkt von Mirrors/Paper

Use ANSI serializer for console completion descriptions (#9351)

Dieser Commit ist enthalten in:
Jason Penilla 2023-06-15 10:11:09 -07:00
Ursprung 8d5fa4f1ee
Commit 3477dbf4aa

Datei anzeigen

@ -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,