From 6a5a88700c3f649fab1abc4a51f6fac9281db874 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 9 May 2025 15:00:12 -1200 Subject: fix offline-mode cert warnings and improve some docs --- azalea-protocol/src/packets/game/s_use_item_on.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/packets/game/s_use_item_on.rs b/azalea-protocol/src/packets/game/s_use_item_on.rs index 967fb5e9..cfe4a5d3 100644 --- a/azalea-protocol/src/packets/game/s_use_item_on.rs +++ b/azalea-protocol/src/packets/game/s_use_item_on.rs @@ -79,12 +79,12 @@ impl AzaleaRead for BlockHit { } } -impl From for BlockHit { +impl From<&BlockHitResult> for BlockHit { /// Converts a [`BlockHitResult`] to a [`BlockHit`]. /// /// The only difference is that the `miss` field is not present in /// [`BlockHit`]. - fn from(hit_result: BlockHitResult) -> Self { + fn from(hit_result: &BlockHitResult) -> Self { Self { block_pos: hit_result.block_pos, direction: hit_result.direction, -- cgit v1.2.3