From 1f73d68bb367c9bd911529acc2785df8ff7dd46b Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 11 May 2014 17:02:53 -0500 Subject: [PATCH] Upped another 30k packet limit to 2mb --- core/sync/AppEngPacket.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sync/AppEngPacket.java b/core/sync/AppEngPacket.java index 9e4d6e955..68ce83b10 100644 --- a/core/sync/AppEngPacket.java +++ b/core/sync/AppEngPacket.java @@ -36,8 +36,8 @@ public abstract class AppEngPacket public FMLProxyPacket getProxy() { - if ( p.array().length > 30000 ) // 2k walking room :) - throw new IllegalArgumentException( "Sorry AE2 made a huge packet by accident!" ); + if ( p.array().length > 2 * 1024 * 1024 ) // 2k walking room :) + throw new IllegalArgumentException( "Sorry AE2 made a " + p.array().length + " byte packet by accident!" ); return new FMLProxyPacket( p, NetworkHandler.instance.getChannel() ); }