From 881333035987867f897042df7173bb2fa05b7621 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 27 May 2023 01:57:31 -0500 Subject: random fixes mostly related to auth and crypto --- azalea-client/src/interact.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'azalea-client/src/interact.rs') 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; }; -- cgit v1.2.3