aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/config
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-09-30 10:56:34 -0500
committerGitHub <noreply@github.com>2025-09-30 10:56:34 -0500
commit643fcb98c0e6cdc63218dd39960d9053b209d9a6 (patch)
tree6bddb7fe39b8fcc3ab3fb2665574533bb227898a /azalea-protocol/src/packets/config
parenta80d8d1b242430c4a251876fa67bfd26af7a0de9 (diff)
downloadazalea-drasl-643fcb98c0e6cdc63218dd39960d9053b209d9a6.tar.xz
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
Diffstat (limited to 'azalea-protocol/src/packets/config')
-rw-r--r--azalea-protocol/src/packets/config/c_code_of_conduct.rs7
-rw-r--r--azalea-protocol/src/packets/config/mod.rs2
-rw-r--r--azalea-protocol/src/packets/config/s_accept_code_of_conduct.rs5
3 files changed, 14 insertions, 0 deletions
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;