Fix max CustomPayload size, 1MB not 16MB.

This commit is contained in:
LexManos committed 2016-11-22 12:13:30 -08:00
1 parent e03d5915e5
commit 2823447b6e
1 file changed
+1 -1
@@ -143,7 +143,7 @@ public class FMLProxyPacket implements Packet<INetHandler> {
return new CPacketCustomPayload(channel, payload);
}
static final int PART_SIZE = 0x1000000 - 0x50; // Make it a constant so that it gets inlined below.
static final int PART_SIZE = 0x100000 - 0x50; // Make it a constant so that it gets inlined below.
// FIXME int overflow
public static final int MAX_LENGTH = PART_SIZE * 255;
public List<Packet<INetHandlerPlayClient>> toS3FPackets() throws IOException