diff --git a/src/packets/motion.rs b/src/packets/motion.rs index a4d6a1a..dec83c5 100644 --- a/src/packets/motion.rs +++ b/src/packets/motion.rs @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize}; #[derive( BinRead, PartialEq, PartialOrd, Copy, Clone, Debug, Serialize, Deserialize, )] -#[br(little)] +#[br(little, import(_packet_format: u16))] pub struct CarMotionData { /// World space X position in metres pub world_position_x: f32,