From 63f15353e7c92c47b48df3aad7fa5c67012637c0 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 20 Aug 2025 06:42:26 -1300 Subject: split client information handling out of BrandPlugin and some other cleanup --- azalea/src/accept_resource_packs.rs | 3 ++- azalea/src/swarm/mod.rs | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/accept_resource_packs.rs b/azalea/src/accept_resource_packs.rs index 4518abcb..f211f532 100644 --- a/azalea/src/accept_resource_packs.rs +++ b/azalea/src/accept_resource_packs.rs @@ -1,6 +1,7 @@ use azalea_client::{ InConfigState, chunks::handle_chunk_batch_finished_event, + client_information::send_client_information, inventory::InventorySet, packet::{ config::SendConfigPacketEvent, @@ -30,7 +31,7 @@ impl Plugin for AcceptResourcePacksPlugin { .after(death_event_on_0_health) .after(handle_chunk_batch_finished_event) .after(InventorySet) - .after(azalea_client::brand::handle_end_login_state), + .after(send_client_information), ); } } diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index ff85e2c1..b39d6911 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -669,11 +669,6 @@ pub type BoxSwarmHandleFn = /// _state: SwarmState, /// ) -> anyhow::Result<()> { /// match &event { -/// SwarmEvent::Disconnect(account, join_opts) => { -/// // automatically reconnect after 5 seconds -/// tokio::time::sleep(Duration::from_secs(5)).await; -/// swarm.add_with_opts(account, State::default(), join_opts).await?; -/// } /// SwarmEvent::Chat(m) => { /// println!("{}", m.message().to_ansi()); /// } -- cgit v1.2.3