From 6fdf5fce497543d75b2c5a1f97bc35945bcfe74f Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 22 Feb 2025 22:34:06 +0000 Subject: fix brand and client info so they're only sent when leaving login instead of entering config closes #206 --- azalea-client/src/client.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/client.rs') diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 131aef16..9de97cc1 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -76,7 +76,7 @@ use crate::{ mining::{self, MinePlugin}, movement::{LastSentLookDirection, PhysicsState, PlayerMovePlugin}, packet_handling::{ - login::{self, LoginSendPacketQueue}, + login::{self, InLoginState, LoginSendPacketQueue}, PacketHandlerPlugin, }, player::retroactively_add_game_profile_component, @@ -371,6 +371,7 @@ impl Client { ecs_lock.lock().entity_mut(entity).insert(( LoginSendPacketQueue { tx: ecs_packets_tx }, login::IgnoreQueryIds::default(), + InLoginState, )); // login @@ -457,6 +458,7 @@ impl Client { p.game_profile ); conn.write(ServerboundLoginAcknowledged {}).await?; + break (conn.config(), p.game_profile); } ClientboundLoginPacket::LoginDisconnect(p) => { @@ -485,7 +487,8 @@ impl Client { .lock() .entity_mut(entity) .remove::() - .remove::(); + .remove::() + .remove::(); Ok((conn, profile)) } -- cgit v1.2.3