From eeb660ce007ee116264656b7fd8dedcbc84a97b3 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 26 May 2020 05:25:03 -0400 Subject: [PATCH] Fix bad ordering --- .../com/velocitypowered/proxy/protocol/ProtocolUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }