aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/packet_handling
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-22 22:34:06 +0000
committermat <git@matdoes.dev>2025-02-22 22:34:06 +0000
commit6fdf5fce497543d75b2c5a1f97bc35945bcfe74f (patch)
tree73765f9457a8fcb9f208ee067ff2a911e3bea15a /azalea-client/src/packet_handling
parent444993b609d54124183fbcadee121c11897ee20e (diff)
downloadazalea-drasl-6fdf5fce497543d75b2c5a1f97bc35945bcfe74f.tar.xz
fix brand and client info so they're only sent when leaving login instead of entering config
closes #206
Diffstat (limited to 'azalea-client/src/packet_handling')
-rw-r--r--azalea-client/src/packet_handling/login.rs5
1 files changed, 5 insertions, 0 deletions
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<ServerboundLoginPacket>,
}
+/// 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<SendLoginPacketEvent>,
mut query: Query<&mut LoginSendPacketQueue>,