aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src')
-rwxr-xr-xazalea-client/src/account.rs15
-rw-r--r--azalea-client/src/interact.rs2
2 files changed, 8 insertions, 9 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs
index 12a16493..5c6056c1 100755
--- a/azalea-client/src/account.rs
+++ b/azalea-client/src/account.rs
@@ -145,14 +145,13 @@ impl Account {
/// Request the certificates used for chat signing and set it in
/// [`Self::certs`].
pub async fn request_certs(&mut self) -> Result<(), RequestCertError> {
- let certs = azalea_auth::certs::fetch_certificates(
- &self
- .access_token
- .as_ref()
- .ok_or(RequestCertError::NoAccessToken)?
- .lock(),
- )
- .await?;
+ let access_token = self
+ .access_token
+ .as_ref()
+ .ok_or(RequestCertError::NoAccessToken)?
+ .lock()
+ .clone();
+ let certs = azalea_auth::certs::fetch_certificates(&access_token).await?;
self.certs = Some(certs);
Ok(())
diff --git a/azalea-client/src/interact.rs b/azalea-client/src/interact.rs
index a6b8e061..c389f2f3 100644
--- a/azalea-client/src/interact.rs
+++ b/azalea-client/src/interact.rs
@@ -253,7 +253,7 @@ pub fn check_block_can_be_broken_by_item_in_adventure_mode(
return false;
};
- return false;
+ false
// for block_predicate in can_destroy {
// // TODO