From 6728ecb1415e382b60857b5add6113153b0c1ee2 Mon Sep 17 00:00:00 2001 From: itsRevela Date: Sun, 5 Apr 2026 18:35:28 -0500 Subject: [PATCH] fix: increase max packet size to 4MB for cross-fork compatibility Matches the packet size limit used by the plugin-api fork. Our 512KB limit caused "Connection lost" when their server sent large packets (e.g. chunk data) that exceeded our cap. --- Minecraft.Client/Windows64/Network/WinsockNetLayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/Windows64/Network/WinsockNetLayer.h b/Minecraft.Client/Windows64/Network/WinsockNetLayer.h index 221fd688..e9e2d82b 100644 --- a/Minecraft.Client/Windows64/Network/WinsockNetLayer.h +++ b/Minecraft.Client/Windows64/Network/WinsockNetLayer.h @@ -17,7 +17,7 @@ #define WIN64_NET_MAX_CLIENTS 255 #define WIN64_SMALLID_REJECT 0xFF #define WIN64_NET_RECV_BUFFER_SIZE 65536 -#define WIN64_NET_MAX_PACKET_SIZE (512 * 1024) +#define WIN64_NET_MAX_PACKET_SIZE (4 * 1024 * 1024) #define WIN64_LAN_DISCOVERY_PORT 25566 #define WIN64_LAN_BROADCAST_MAGIC 0x4D434C4E