fix a typo

This commit is contained in:
Andrew Steinborn
2024-10-27 13:54:08 -04:00
parent 69ee655d74
commit b135148dfc

View File

@@ -46,6 +46,7 @@ public class MinecraftVarintFrameDecoder extends ByteToMessageDecoder {
// skip any runs of 0x00 we might find
int packetStart = in.forEachByte(FIND_NON_NUL);
if (packetStart == -1) {
in.clear();
return;
}
in.readerIndex(packetStart);