diff options
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/packets/game/s_use_item_on.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<BlockHitResult> 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, |
