Fix splitting big packets skipping one byte per additional part (#4302)

This commit is contained in:
Bartosz Skrzypczak authored and mezz committed 2017-09-20 21:52:21 -07:00
1 parent b290cc6477
commit c2b79dd6ad
2 files changed
+79 -1

No files matched your search

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