geforkt von Mirrors/Velocity
Update 1.21.2 client support #5
@ -46,6 +46,7 @@ public class MinecraftVarintFrameDecoder extends ByteToMessageDecoder {
|
|||||||
// skip any runs of 0x00 we might find
|
// skip any runs of 0x00 we might find
|
||||||
int packetStart = in.forEachByte(FIND_NON_NUL);
|
int packetStart = in.forEachByte(FIND_NON_NUL);
|
||||||
if (packetStart == -1) {
|
if (packetStart == -1) {
|
||||||
|
in.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
in.readerIndex(packetStart);
|
in.readerIndex(packetStart);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren