diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java index 6dd3d6503d..3dc3d91819 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java @@ -40,6 +40,8 @@ public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protoco // remove in next minecraft release if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 ) { + // This boolean specifies whether the client should + // disconnect on its own if it receives invalid data from the server buf.readBoolean(); } } @@ -63,6 +65,8 @@ public void write(ByteBuf buf, ProtocolConstants.Direction direction, int protoc if ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 ) { // vanilla sends true so we also send true ( chocolate > vanilla ) + // This boolean specifies whether the client should + // disconnect on its own if it receives invalid data from the server buf.writeBoolean( true ); } }