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/packet_handling/login.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'azalea-client/src/packet_handling') diff --git a/azalea-client/src/packet_handling/login.rs b/azalea-client/src/packet_handling/login.rs index 11c0b8e9..dec4aa06 100644 --- a/azalea-client/src/packet_handling/login.rs +++ b/azalea-client/src/packet_handling/login.rs @@ -48,6 +48,11 @@ pub struct LoginSendPacketQueue { pub tx: mpsc::UnboundedSender, } +/// A marker component for local players that are currently in the +/// `login` state. +#[derive(Component, Clone, Debug)] +pub struct InLoginState; + pub fn handle_send_packet_event( mut send_packet_events: EventReader, mut query: Query<&mut LoginSendPacketQueue>, -- cgit v1.2.3