diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index c0193f34f6..86a3368c3a 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -316,7 +316,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + + private static ChatRenderer legacyRenderer(final String format) { -+ return (player, displayName, message, recipient) -> PaperAdventure.LEGACY_SECTION_UXRC.deserialize(String.format(format, legacyDisplayName((CraftPlayer) player), PaperAdventure.LEGACY_SECTION_UXRC.serialize(message))).replaceText(URL_REPLACEMENT_CONFIG); ++ return ChatRenderer.viewerUnaware((player, displayName, message) -> PaperAdventure.LEGACY_SECTION_UXRC.deserialize(String.format(format, legacyDisplayName((CraftPlayer) player), PaperAdventure.LEGACY_SECTION_UXRC.serialize(message))).replaceText(URL_REPLACEMENT_CONFIG)); + } + + private void queueIfAsyncOrRunImmediately(final Waitable waitable) {