aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/join.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-08 13:37:23 -1300
committermat <git@matdoes.dev>2025-06-08 17:44:12 -0900
commit45d73712746fbfd365e8a68a75dfad6ae2e0d174 (patch)
tree69a1cda92aaf38337b6a791a780e809f99a64716 /azalea-client/src/plugins/join.rs
parent3087b0c996dbd3fb9a1dbcac4bf5c32f992c2e5e (diff)
downloadazalea-drasl-45d73712746fbfd365e8a68a75dfad6ae2e0d174.tar.xz
insert ClientInformation earlier
Diffstat (limited to 'azalea-client/src/plugins/join.rs')
-rw-r--r--azalea-client/src/plugins/join.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-client/src/plugins/join.rs b/azalea-client/src/plugins/join.rs
index 8d094b7d..ed2d6ed3 100644
--- a/azalea-client/src/plugins/join.rs
+++ b/azalea-client/src/plugins/join.rs
@@ -129,6 +129,8 @@ pub fn handle_start_join_server_event(
// localentity is always present for our clients, even if we're not actually logged
// in
LocalEntity,
+ // this is inserted early so the user can always access and modify it
+ ClientInformation::default(),
// ConnectOpts is inserted as a component here
event.connect_opts.clone(),
// we don't insert InLoginState until we actually create the connection. note that
@@ -216,7 +218,6 @@ pub fn poll_create_connection_task(
write_conn,
ConnectionProtocol::Login,
),
- client_information: ClientInformation::default(),
instance_holder,
metadata: azalea_entity::metadata::PlayerMetadataBundle::default(),
},