Skip to content

Commit 1f4b41a

Browse files
committed
chore: add max packet length
1 parent 1172bc0 commit 1f4b41a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/ServerboundPlayerLoadedPacket.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersi
3535
@Override
3636
public void encode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {}
3737

38+
@Override
39+
public int decodeExpectedMaxLength(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {
40+
return 0;
41+
}
42+
3843
@Override
3944
public boolean handle(MinecraftSessionHandler handler) {
4045
return handler.handle(this);

0 commit comments

Comments
 (0)