diff options
Diffstat (limited to 'azalea-client/src/plugins/client_information.rs')
| -rw-r--r-- | azalea-client/src/plugins/client_information.rs | 10 |
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(); }); |
