diff --git a/patches/server/0039-Reject-translatable-components-with-more-than-32-pla.patch b/patches/server/0039-Reject-translatable-components-with-more-than-32-pla.patch index 1598cb1..0cab4af 100644 --- a/patches/server/0039-Reject-translatable-components-with-more-than-32-pla.patch +++ b/patches/server/0039-Reject-translatable-components-with-more-than-32-pla.patch @@ -5,19 +5,18 @@ Subject: [PATCH] Reject translatable components with more than 32 placeholders diff --git a/src/main/java/net/minecraft/network/chat/Component.java b/src/main/java/net/minecraft/network/chat/Component.java -index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..273a19d0297982dedf4450a8656435abaab29d28 100644 +index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..534f1e6092d2b64b6e6e3182eac0cc38718ab2f8 100644 --- a/src/main/java/net/minecraft/network/chat/Component.java +++ b/src/main/java/net/minecraft/network/chat/Component.java -@@ -26,6 +26,8 @@ import java.util.List; +@@ -26,6 +26,7 @@ import java.util.List; import java.util.Map.Entry; import java.util.Optional; import javax.annotation.Nullable; + -+import net.kyori.adventure.text.TextComponent; import net.minecraft.ChatFormatting; import net.minecraft.Util; import net.minecraft.network.chat.contents.BlockDataSource; -@@ -44,6 +46,9 @@ import net.minecraft.util.GsonHelper; +@@ -44,6 +45,9 @@ import net.minecraft.util.GsonHelper; import net.minecraft.util.LowerCaseEnumTypeAdapterFactory; // CraftBukkit start import com.google.common.collect.Streams; @@ -27,7 +26,7 @@ index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..273a19d0297982dedf4450a8656435ab import java.util.stream.Stream; // CraftBukkit end -@@ -255,6 +260,58 @@ public interface Component extends Message, FormattedText, Iterable { +@@ -255,6 +259,58 @@ public interface Component extends Message, FormattedText, Iterable { } }); @@ -86,7 +85,7 @@ index 3c0ee4e1f42f6056ca86a6f9f129d467e29a2fbc..273a19d0297982dedf4450a8656435ab public Serializer() {} public MutableComponent deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException { -@@ -287,6 +344,14 @@ public interface Component extends Message, FormattedText, Iterable { +@@ -287,6 +343,14 @@ public interface Component extends Message, FormattedText, Iterable { } } else { JsonObject jsonobject = jsonelement.getAsJsonObject();