Upped another 30k packet limit to 2mb
This commit is contained in:
@@ -36,8 +36,8 @@ public abstract class AppEngPacket
|
|||||||
|
|
||||||
public FMLProxyPacket getProxy()
|
public FMLProxyPacket getProxy()
|
||||||
{
|
{
|
||||||
if ( p.array().length > 30000 ) // 2k walking room :)
|
if ( p.array().length > 2 * 1024 * 1024 ) // 2k walking room :)
|
||||||
throw new IllegalArgumentException( "Sorry AE2 made a huge packet by accident!" );
|
throw new IllegalArgumentException( "Sorry AE2 made a " + p.array().length + " byte packet by accident!" );
|
||||||
|
|
||||||
return new FMLProxyPacket( p, NetworkHandler.instance.getChannel() );
|
return new FMLProxyPacket( p, NetworkHandler.instance.getChannel() );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user