diff options
| author | mat <git@matdoes.dev> | 2025-06-11 22:22:26 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-11 22:22:26 +0000 |
| commit | 1b348ceeffc61e49b19f2982e7a9de479c1678de (patch) | |
| tree | bead28ce1a076a3af5ca5df2c326c9e94b63dd92 /azalea-protocol/src/packets | |
| parent | 067ec06f26ecaf7a319eb3ce61307b9730176313 (diff) | |
| download | azalea-drasl-1b348ceeffc61e49b19f2982e7a9de479c1678de.tar.xz | |
implement reverting block state predictions on ack
Diffstat (limited to 'azalea-protocol/src/packets')
4 files changed, 5 insertions, 6 deletions
diff --git a/azalea-protocol/src/packets/game/c_block_changed_ack.rs b/azalea-protocol/src/packets/game/c_block_changed_ack.rs index ebb303c0..c477c1f2 100644 --- a/azalea-protocol/src/packets/game/c_block_changed_ack.rs +++ b/azalea-protocol/src/packets/game/c_block_changed_ack.rs @@ -4,5 +4,5 @@ use azalea_protocol_macros::ClientboundGamePacket; #[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] pub struct ClientboundBlockChangedAck { #[var] - pub sequence: i32, + pub seq: u32, } diff --git a/azalea-protocol/src/packets/game/s_player_action.rs b/azalea-protocol/src/packets/game/s_player_action.rs index 5b65b746..cffec2bd 100644 --- a/azalea-protocol/src/packets/game/s_player_action.rs +++ b/azalea-protocol/src/packets/game/s_player_action.rs @@ -1,6 +1,5 @@ use azalea_buf::AzBuf; -use azalea_core::direction::Direction; -use azalea_core::position::BlockPos; +use azalea_core::{direction::Direction, position::BlockPos}; use azalea_protocol_macros::ServerboundGamePacket; #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] @@ -9,7 +8,7 @@ pub struct ServerboundPlayerAction { pub pos: BlockPos, pub direction: Direction, #[var] - pub sequence: u32, + pub seq: u32, } #[derive(AzBuf, Clone, Copy, Debug)] diff --git a/azalea-protocol/src/packets/game/s_use_item.rs b/azalea-protocol/src/packets/game/s_use_item.rs index d6ccca87..3e9e1a2f 100644 --- a/azalea-protocol/src/packets/game/s_use_item.rs +++ b/azalea-protocol/src/packets/game/s_use_item.rs @@ -7,7 +7,7 @@ use crate::packets::game::s_interact::InteractionHand; pub struct ServerboundUseItem { pub hand: InteractionHand, #[var] - pub sequence: u32, + pub seq: u32, pub y_rot: f32, pub x_rot: f32, } 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 11e32b2c..1c08112d 100644 --- a/azalea-protocol/src/packets/game/s_use_item_on.rs +++ b/azalea-protocol/src/packets/game/s_use_item_on.rs @@ -15,7 +15,7 @@ pub struct ServerboundUseItemOn { pub hand: InteractionHand, pub block_hit: BlockHit, #[var] - pub sequence: u32, + pub seq: u32, } #[derive(Clone, Debug)] |
