3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Merge branch 'dev/1.1.0' into decode-multiple

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-05-26 05:25:11 -04:00
Commit d66766a38b

Datei anzeigen

@ -29,8 +29,8 @@ public enum ProtocolUtils {
public static int readVarInt(ByteBuf buf) {
int read = readVarIntSafely(buf);
if (read == Integer.MIN_VALUE) {
throw MinecraftDecoder.DEBUG ? BAD_VARINT_CACHED
: new CorruptedFrameException("Bad varint decoded");
throw MinecraftDecoder.DEBUG ? new CorruptedFrameException("Bad varint decoded")
: BAD_VARINT_CACHED;
}
return read;
}