From 643fcb98c0e6cdc63218dd39960d9053b209d9a6 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 30 Sep 2025 10:56:34 -0500 Subject: 1.21.9 (#235) * start updating to 25w33a * 1.21.9-pre2 * clippy * cleanup, and fix c_explode and c_player_rotation * mc update should be in Changed section in the changelog * 1.21.9 --- azalea-protocol/src/packets/config/c_code_of_conduct.rs | 7 +++++++ azalea-protocol/src/packets/config/mod.rs | 2 ++ azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 azalea-protocol/src/packets/config/c_code_of_conduct.rs create mode 100644 azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs (limited to 'azalea-protocol/src/packets/config') diff --git a/azalea-protocol/src/packets/config/c_code_of_conduct.rs b/azalea-protocol/src/packets/config/c_code_of_conduct.rs new file mode 100644 index 00000000..03f133a8 --- /dev/null +++ b/azalea-protocol/src/packets/config/c_code_of_conduct.rs @@ -0,0 +1,7 @@ +use azalea_buf::AzBuf; +use azalea_protocol_macros::ClientboundConfigPacket; + +#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)] +pub struct ClientboundCodeOfConduct { + pub code_of_conduct: String, +} diff --git a/azalea-protocol/src/packets/config/mod.rs b/azalea-protocol/src/packets/config/mod.rs index 58e00ad5..863655f2 100644 --- a/azalea-protocol/src/packets/config/mod.rs +++ b/azalea-protocol/src/packets/config/mod.rs @@ -24,6 +24,7 @@ declare_state_packets!(ConfigPacket, server_links, clear_dialog, show_dialog, + code_of_conduct, ], Serverbound => [ client_information, @@ -35,5 +36,6 @@ declare_state_packets!(ConfigPacket, resource_pack, select_known_packs, custom_click_action, + accept_code_of_conduct, ] ); diff --git a/azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs b/azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs new file mode 100644 index 00000000..c5fea5dd --- /dev/null +++ b/azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs @@ -0,0 +1,5 @@ +use azalea_buf::AzBuf; +use azalea_protocol_macros::ServerboundConfigPacket; + +#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundConfigPacket)] +pub struct ServerboundAcceptCodeOfConduct; -- cgit v1.2.3