From 8d7a6d9c893d10ea8512c0bfccdd83fc30e8389d Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 25 Mar 2021 17:01:59 -0700 Subject: [PATCH] Use PaperAdventure.PLAIN instead of PlainComponentSerializer.plain() for AdventureComponent#getString (#5414) --- Spigot-Server-Patches/Adventure.patch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Adventure.patch b/Spigot-Server-Patches/Adventure.patch index 572c4fe2d3..363b07cfbe 100644 --- a/Spigot-Server-Patches/Adventure.patch +++ b/Spigot-Server-Patches/Adventure.patch @@ -35,7 +35,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +import java.util.List; +import net.kyori.adventure.text.Component; +import net.kyori.adventure.text.TextComponent; -+import net.kyori.adventure.text.serializer.plain.PlainComponentSerializer; +import net.minecraft.network.chat.ChatModifier; +import net.minecraft.network.chat.IChatBaseComponent; +import net.minecraft.network.chat.IChatMutableComponent; @@ -79,7 +78,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + @Override + public String getString() { -+ return PlainComponentSerializer.plain().serialize(this.wrapped); ++ return PaperAdventure.PLAIN.serialize(this.wrapped); + } + + @Override