mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix splitting big packets skipping one byte per additional part (#4301)
This commit is contained in:
1 parent
1e85c6b2e8
commit
68a10b3037
2 files changed
+68
-1
No files matched your search
+1
-1
@@ -644,7 +644,7 @@ public class NetworkDispatcher extends SimpleChannelInboundHandler<Packet<?>> im
|
||||
{
|
||||
throw new IOException("Received FML MultiPart packet out of order, Expected " + part_expected + " Got " + part);
|
||||
}
|
||||
int len = input.readableBytes() - 1;
|
||||
int len = input.readableBytes();
|
||||
input.readBytes(data, offset, len);
|
||||
part_expected++;
|
||||
offset += len;
|
||||
|
||||
Reference in new issue
Block a user