aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-08-20 06:42:26 -1300
committermat <git@matdoes.dev>2025-08-20 22:42:40 +0300
commit63f15353e7c92c47b48df3aad7fa5c67012637c0 (patch)
tree0b7556cd3c80935fd8e323f0f11673857cb6ef46 /azalea/src
parenta89cae5703abe0e103a17e9c931fb6132c448172 (diff)
downloadazalea-drasl-63f15353e7c92c47b48df3aad7fa5c67012637c0.tar.xz
split client information handling out of BrandPlugin and some other cleanup
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/accept_resource_packs.rs3
-rw-r--r--azalea/src/swarm/mod.rs5
2 files changed, 2 insertions, 6 deletions
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<SS, R> =
/// _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());
/// }