From a029f5d67c54dd46f326115ae0dc3a8cf9f544ed Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 22 Jun 2022 09:15:20 +0100 Subject: [PATCH] Parse MOTD as legacy sectioned string (Fixes #8036) This is not ideal but this is how MOTDs have been parsed for years, ensure that this is performed for all things getting the MOTD from the server --- patches/server/Adventure.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index ce3e9497cc..99b4450290 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -1958,7 +1958,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start + @Override + public net.kyori.adventure.text.Component motd() { -+ return io.papermc.paper.adventure.PaperAdventure.asAdventure(net.minecraft.network.chat.Component.literal(console.getMotd())); ++ return net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(console.getMotd()); + } + // Paper end @Override