From 4219bf7b09d5707439900563a86c674cb011d1a5 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 26 Jan 2021 20:01:25 -0500 Subject: [PATCH] *Actually* fix Checkstyle issues --- .../com/velocitypowered/proxy/protocol/MinecraftPacket.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/MinecraftPacket.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/MinecraftPacket.java index 75cbe5221..e7baaecb1 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/MinecraftPacket.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/MinecraftPacket.java @@ -12,11 +12,13 @@ public interface MinecraftPacket { boolean handle(MinecraftSessionHandler handler); - default int expectedMaxLength(ByteBuf buf, ProtocolUtils.Direction direction,ProtocolVersion version) { + default int expectedMaxLength(ByteBuf buf, ProtocolUtils.Direction direction, + ProtocolVersion version) { return -1; } - default int expectedMinLength(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) { + default int expectedMinLength(ByteBuf buf, ProtocolUtils.Direction direction, + ProtocolVersion version) { return 0; } }