mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
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
This commit is contained in:
parent
4d6659b9ff
commit
a029f5d67c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue