From 3477dbf4aa666750e307c6cf95d63b6f7b51bc12 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 15 Jun 2023 10:11:09 -0700 Subject: [PATCH] Use ANSI serializer for console completion descriptions (#9351) --- .../Enhance-console-tab-completions-for-brigadier-comman.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Enhance-console-tab-completions-for-brigadier-comman.patch b/patches/server/Enhance-console-tab-completions-for-brigadier-comman.patch index e9b95ee394..138cee9320 100644 --- a/patches/server/Enhance-console-tab-completions-for-brigadier-comman.patch +++ b/patches/server/Enhance-console-tab-completions-for-brigadier-comman.patch @@ -104,7 +104,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + private static @NonNull Candidate toCandidate(final @NonNull Completion completion) { + 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( + suggestionText, + suggestionText,