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 | |
| parent | 6188230009b49f96b755ade32a28b932e7810196 (diff) | |
| download | azalea-drasl-881333035987867f897042df7173bb2fa05b7621.tar.xz | |
random fixes mostly related to auth and crypto
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/interact.rs | 5 | ||||
| -rw-r--r-- | azalea-client/src/mining.rs | 8 |
3 files changed, 7 insertions, 8 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 739ec434..fb977f36 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -342,7 +342,7 @@ impl Client { conn.write( ServerboundHelloPacket { name: account.username.clone(), - profile_id: None, + profile_id: account.uuid, } .get(), ) 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; }; diff --git a/azalea-client/src/mining.rs b/azalea-client/src/mining.rs index 5af9a20b..ab141661 100644 --- a/azalea-client/src/mining.rs +++ b/azalea-client/src/mining.rs @@ -28,8 +28,8 @@ pub struct StartMiningBlockEvent { pub position: BlockPos, } -fn handle_start_mining_block_event(mut events: EventReader<StartMiningBlockEvent>) { - for event in events.iter() { - // - } +fn handle_start_mining_block_event(mut _events: EventReader<StartMiningBlockEvent>) { + // for event in events.iter() { + // // + // } } |
