Fix bad ordering
This commit is contained in:
@@ -29,8 +29,8 @@ public enum ProtocolUtils {
|
|||||||
public static int readVarInt(ByteBuf buf) {
|
public static int readVarInt(ByteBuf buf) {
|
||||||
int read = readVarIntSafely(buf);
|
int read = readVarIntSafely(buf);
|
||||||
if (read == Integer.MIN_VALUE) {
|
if (read == Integer.MIN_VALUE) {
|
||||||
throw MinecraftDecoder.DEBUG ? BAD_VARINT_CACHED
|
throw MinecraftDecoder.DEBUG ? new CorruptedFrameException("Bad varint decoded")
|
||||||
: new CorruptedFrameException("Bad varint decoded");
|
: BAD_VARINT_CACHED;
|
||||||
}
|
}
|
||||||
return read;
|
return read;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user