3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Correctly handle 0-length packet

Dieser Commit ist enthalten in:
Andrew Steinborn 2019-09-17 09:33:43 -04:00
Ursprung 009c9afe09
Commit 8dea7567d8

Datei anzeigen

@ -24,7 +24,7 @@ public class MinecraftVarintFrameDecoder extends ByteToMessageDecoder {
in.readerIndex(lastReaderIndex);
int packetLength = ProtocolUtils.readVarInt(in);
if (packetLength == 0) {
break find_packets;
continue find_packets;
}
if (in.readableBytes() < packetLength) {