mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix max CustomPayload size, 1MB not 16MB.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user