diff options
| author | mat <git@matdoes.dev> | 2025-05-09 15:00:12 -1200 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-09 15:00:12 -1200 |
| commit | 6a5a88700c3f649fab1abc4a51f6fac9281db874 (patch) | |
| tree | bed73430ba622df59b926f173e35c1d0a7683c60 /azalea-protocol/src | |
| parent | e1d3b902ba08170e4ee82c53f216445f57fbc47e (diff) | |
| download | azalea-drasl-6a5a88700c3f649fab1abc4a51f6fac9281db874.tar.xz | |
fix offline-mode cert warnings and improve some docs
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, |
