Skip to content

Commit 372a3b2

Browse files
committed
Conformity
1 parent a03bd88 commit 372a3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftVarintFrameDecoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out)
7676
}
7777

7878
// skip any runs of 0x00 we might find
79-
int wLength = in.readableBytes();
79+
int wlen = in.readableBytes();
8080
int packetStart = in.forEachByte(FIND_NON_NUL);
8181
if (packetStart == -1) {
8282
in.clear();
8383
// Apply a more strict check in serverbound direction, we really shouldn't be seeing this many 0x00s
8484
// even from the server, the only reason we even allow these is due to bugged servers
85-
if (direction == ProtocolUtils.Direction.SERVERBOUND && wLength > 16) {
85+
if (direction == ProtocolUtils.Direction.SERVERBOUND && wlen > 16) {
8686
throw INVALID_PREAMBLE;
8787
}
8888
return;

0 commit comments

Comments
 (0)