From aab13de89a2048f53554fd244eb55391f8f22c59 Mon Sep 17 00:00:00 2001 From: lukas0008 Date: Wed, 7 Aug 2024 17:17:55 +0200 Subject: [PATCH] Re-add SSwingArm --- pumpkin-protocol/src/server/play/mod.rs | 2 ++ pumpkin-protocol/src/server/play/s_swing_arm.rs | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 pumpkin-protocol/src/server/play/s_swing_arm.rs diff --git a/pumpkin-protocol/src/server/play/mod.rs b/pumpkin-protocol/src/server/play/mod.rs index 681604145..820f45a2a 100644 --- a/pumpkin-protocol/src/server/play/mod.rs +++ b/pumpkin-protocol/src/server/play/mod.rs @@ -4,6 +4,7 @@ mod s_player_command; mod s_player_position; mod s_player_position_rotation; mod s_player_rotation; +mod s_swing_arm; pub use s_chat_command::*; pub use s_confirm_teleport::*; @@ -11,3 +12,4 @@ pub use s_player_command::*; pub use s_player_position::*; pub use s_player_position_rotation::*; pub use s_player_rotation::*; +pub use s_swing_arm::*; diff --git a/pumpkin-protocol/src/server/play/s_swing_arm.rs b/pumpkin-protocol/src/server/play/s_swing_arm.rs new file mode 100644 index 000000000..ea0690630 --- /dev/null +++ b/pumpkin-protocol/src/server/play/s_swing_arm.rs @@ -0,0 +1,8 @@ +use crate::VarInt; +use pumpkin_macros::packet; + +#[derive(serde::Deserialize)] +#[packet(0x36)] +pub struct SSwingArm { + pub hand: VarInt, +}