Fix max CustomPayload size, 1MB not 16MB.

This commit is contained in:
LexManos 2016-11-22 12:13:30 -08:00
parent e03d5915e5
commit 2823447b6e
1 changed files with 1 additions and 1 deletions

View File

@ -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