mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Fix splitting big packets skipping one byte per additional part (#4302)
This commit is contained in:
1 parent
b290cc6477
commit
c2b79dd6ad
2 files changed
+79
-1
No files matched your search
+1
-1
@@ -645,7 +645,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