From 891ad8711d64323bb2360d8ce7d10f329fa671a1 Mon Sep 17 00:00:00 2001 From: Thinkofname Date: Tue, 29 Mar 2016 19:41:16 +0100 Subject: [PATCH] String arrays are only send by servers/Bungeecord. No need to limit their size --- .../src/main/java/net/md_5/bungee/protocol/DefinedPacket.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java b/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java index c4deabe4..1f19d142 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java @@ -56,7 +56,6 @@ public abstract class DefinedPacket public static void writeStringArray(List s, ByteBuf buf) { - Preconditions.checkArgument( s.size() <= 64, "Cannot send string array longer than 64 (got %s strings)", s.size() ); writeVarInt( s.size(), buf ); for ( String str : s ) { @@ -67,7 +66,6 @@ public abstract class DefinedPacket public static List readStringArray(ByteBuf buf) { int len = readVarInt( buf ); - Preconditions.checkArgument( len <= 64, "Cannot receive string array longer than 64 (got %s strings)", len ); List ret = new ArrayList<>( len ); for ( int i = 0; i < len; i++ ) {