diff options
| author | mat <git@matdoes.dev> | 2023-05-27 01:57:31 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-05-27 01:57:31 -0500 |
| commit | 881333035987867f897042df7173bb2fa05b7621 (patch) | |
| tree | 283d44ea32bcb9119ec9546dcde59477012fc3bc /azalea-client/src/interact.rs | |
| parent | 6188230009b49f96b755ade32a28b932e7810196 (diff) | |
| download | azalea-drasl-881333035987867f897042df7173bb2fa05b7621.tar.xz | |
random fixes mostly related to auth and crypto
Diffstat (limited to 'azalea-client/src/interact.rs')
| -rw-r--r-- | azalea-client/src/interact.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/azalea-client/src/interact.rs b/azalea-client/src/interact.rs index afb55bbf..a6b8e061 100644 --- a/azalea-client/src/interact.rs +++ b/azalea-client/src/interact.rs @@ -23,7 +23,6 @@ use derive_more::{Deref, DerefMut}; use log::warn; use crate::{ - client::PlayerAbilities, inventory::InventoryComponent, local_player::{handle_send_packet_event, LocalGameMode}, Client, LocalPlayer, @@ -235,7 +234,7 @@ pub fn check_is_interaction_restricted( /// Check if the item has the `CanDestroy` tag for the block. pub fn check_block_can_be_broken_by_item_in_adventure_mode( item: &ItemSlotData, - block: &BlockState, + _block: &BlockState, ) -> bool { // minecraft caches the last checked block but that's kind of an unnecessary // optimization and makes the code too complicated @@ -249,7 +248,7 @@ pub fn check_block_can_be_broken_by_item_in_adventure_mode( return false; }; - let NbtList::String(can_destroy) = can_destroy else { + let NbtList::String(_can_destroy) = can_destroy else { // CanDestroy tag must be a list of strings return false; }; |
