diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java index 5c602014f..b4e56044a 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java @@ -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; }