diff --git a/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodecHelper.java b/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodecHelper.java index 8025ad17..23189dd5 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodecHelper.java +++ b/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodecHelper.java @@ -321,7 +321,7 @@ public class MinecraftCodecHelper extends BasePacketCodecHelper { } public Component readComponent(ByteBuf buf) { - return DefaultComponentSerializer.get().deserialize(this.readString(buf)); + return DefaultComponentSerializer.get().deserialize(this.readString(buf, 262144)); } public void writeComponent(ByteBuf buf, Component component) {