From 6e818852d868eea963dd2b8489ba75b65c56fb1c Mon Sep 17 00:00:00 2001 From: EightFactorial Date: Mon, 30 Jan 2023 16:18:14 -0800 Subject: More packet fixes, tests, handle error (#61) * Fix packet, fix tests, fixedbitsets * Clippy: Nightmare Mode * Fix mistake * simplify impl Display and make thing pub --------- Co-authored-by: mat --- azalea-protocol/src/packets/game/serverbound_interact_packet.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-protocol/src/packets/game/serverbound_interact_packet.rs') 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, }) -- cgit v1.2.3