aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/client_information.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-12 23:01:54 +0300
committermat <git@matdoes.dev>2025-10-12 23:01:54 +0300
commitee2575794e91b9457a74a95daf1dcc707058cd58 (patch)
treedf725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-client/src/plugins/client_information.rs
parent1a1402954b07cd77615d0afc026c73b008787f51 (diff)
downloadazalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-client/src/plugins/client_information.rs')
-rw-r--r--azalea-client/src/plugins/client_information.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/client_information.rs b/azalea-client/src/plugins/client_information.rs
index 499b8ab5..98f69a2d 100644
--- a/azalea-client/src/plugins/client_information.rs
+++ b/azalea-client/src/plugins/client_information.rs
@@ -45,8 +45,9 @@ pub fn send_client_information(
impl Client {
/// Tell the server we changed our game options (i.e. render distance, main
- /// hand). If this is not set before the login packet, the default will
- /// be sent.
+ /// hand).
+ ///
+ /// If this is not set before the login packet, the default will be sent.
///
/// ```rust,no_run
/// # use azalea_client::{Client, ClientInformation};
@@ -54,12 +55,11 @@ impl Client {
/// bot.set_client_information(ClientInformation {
/// view_distance: 2,
/// ..Default::default()
- /// })
- /// .await;
+ /// });
/// # Ok(())
/// # }
/// ```
- pub async fn set_client_information(&self, client_information: ClientInformation) {
+ pub fn set_client_information(&self, client_information: ClientInformation) {
self.query_self::<&mut ClientInformation, _>(|mut ci| {
*ci = client_information.clone();
});