Skip to content

Commit 6157d88

Browse files
committed
Unset FLAG_CONTINUOUS_SEND on first packet fragment
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
1 parent 17084f8 commit 6157d88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Only update version on publishing to Maven Central
2-
version=1.5.0
2+
version=1.5.1

transport-raknet/src/main/java/org/cloudburstmc/netty/channel/raknet/packet/RakDatagramPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public boolean tryAddPacket(EncapsulatedPacket packet, int mtu) {
6969
}
7070

7171
this.packets.add(packet);
72-
if (packet.isSplit()) {
72+
if (packet.isSplit() && packet.getPartIndex() > 0) {
7373
flags |= FLAG_CONTINUOUS_SEND;
7474
}
7575
return true;

0 commit comments

Comments
 (0)