From e57a4cbe727664ed6dbfbe7a944e82060c76a4f0 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 6 May 2021 03:32:52 -0700 Subject: [PATCH] Use JsonSerializationContext#serialize instead of recursion for AdventureComponents - fixes #5580 and #5371 --- Spigot-Server-Patches/Adventure.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Spigot-Server-Patches/Adventure.patch b/Spigot-Server-Patches/Adventure.patch index ccec51a6f..aafc27945 100644 --- a/Spigot-Server-Patches/Adventure.patch +++ b/Spigot-Server-Patches/Adventure.patch @@ -1038,6 +1038,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 gsonbuilder.registerTypeHierarchyAdapter(IChatBaseComponent.class, new IChatBaseComponent.ChatSerializer()); gsonbuilder.registerTypeHierarchyAdapter(ChatModifier.class, new ChatModifier.ChatModifierSerializer()); gsonbuilder.registerTypeAdapterFactory(new ChatTypeAdapterFactory()); +@@ -0,0 +0,0 @@ public interface IChatBaseComponent extends Message, IChatFormatted, Iterable