From f9e4b65713bbacabcd54416a388a92b90f56ab47 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 26 Jun 2025 12:32:01 +0930 Subject: start adding packet_order test --- azalea-protocol/src/packets/game/s_move_player_pos.rs | 4 +++- azalea-protocol/src/packets/game/s_move_player_pos_rot.rs | 4 +++- azalea-protocol/src/packets/game/s_move_player_rot.rs | 4 +++- azalea-protocol/src/packets/game/s_move_player_status_only.rs | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) (limited to 'azalea-protocol/src/packets') diff --git a/azalea-protocol/src/packets/game/s_move_player_pos.rs b/azalea-protocol/src/packets/game/s_move_player_pos.rs index 2daf1d42..fd1f4a9f 100644 --- a/azalea-protocol/src/packets/game/s_move_player_pos.rs +++ b/azalea-protocol/src/packets/game/s_move_player_pos.rs @@ -2,8 +2,10 @@ use azalea_buf::AzBuf; use azalea_core::position::Vec3; use azalea_protocol_macros::ServerboundGamePacket; +use crate::common::movements::MoveFlags; + #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] pub struct ServerboundMovePlayerPos { pub pos: Vec3, - pub on_ground: bool, + pub flags: MoveFlags, } diff --git a/azalea-protocol/src/packets/game/s_move_player_pos_rot.rs b/azalea-protocol/src/packets/game/s_move_player_pos_rot.rs index 3460c709..feee0137 100644 --- a/azalea-protocol/src/packets/game/s_move_player_pos_rot.rs +++ b/azalea-protocol/src/packets/game/s_move_player_pos_rot.rs @@ -3,9 +3,11 @@ use azalea_core::position::Vec3; use azalea_entity::LookDirection; use azalea_protocol_macros::ServerboundGamePacket; +use crate::common::movements::MoveFlags; + #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] pub struct ServerboundMovePlayerPosRot { pub pos: Vec3, pub look_direction: LookDirection, - pub on_ground: bool, + pub flags: MoveFlags, } diff --git a/azalea-protocol/src/packets/game/s_move_player_rot.rs b/azalea-protocol/src/packets/game/s_move_player_rot.rs index 6aef91b0..d158af8c 100644 --- a/azalea-protocol/src/packets/game/s_move_player_rot.rs +++ b/azalea-protocol/src/packets/game/s_move_player_rot.rs @@ -2,8 +2,10 @@ use azalea_buf::AzBuf; use azalea_entity::LookDirection; use azalea_protocol_macros::ServerboundGamePacket; +use crate::common::movements::MoveFlags; + #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] pub struct ServerboundMovePlayerRot { pub look_direction: LookDirection, - pub on_ground: bool, + pub flags: MoveFlags, } diff --git a/azalea-protocol/src/packets/game/s_move_player_status_only.rs b/azalea-protocol/src/packets/game/s_move_player_status_only.rs index 155841f0..162b6b0e 100644 --- a/azalea-protocol/src/packets/game/s_move_player_status_only.rs +++ b/azalea-protocol/src/packets/game/s_move_player_status_only.rs @@ -1,7 +1,9 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundGamePacket; +use crate::common::movements::MoveFlags; + #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] pub struct ServerboundMovePlayerStatusOnly { - pub on_ground: bool, + pub flags: MoveFlags, } -- cgit v1.2.3