diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/serverbound_interact_packet.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/game/serverbound_interact_packet.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-protocol/src/packets/game/serverbound_interact_packet.rs b/azalea-protocol/src/packets/game/serverbound_interact_packet.rs index 1904accf..a117ca6f 100755 --- a/azalea-protocol/src/packets/game/serverbound_interact_packet.rs +++ b/azalea-protocol/src/packets/game/serverbound_interact_packet.rs @@ -63,9 +63,9 @@ impl McBufReadable for ActionType { let hand = InteractionHand::read_from(buf)?; Ok(ActionType::InteractAt { location: Vec3 { - x: x as f64, - y: y as f64, - z: z as f64, + x: f64::from(x), + y: f64::from(y), + z: f64::from(z), }, hand, }) |
