aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-14 19:14:34 -0500
committermat <github@matdoes.dev>2022-05-14 19:14:34 -0500
commit42f86f73f256c0219a923c5ff67a509e7a8a898d (patch)
treeda9db6effc1503c003b3d08175a35ed3bfb546b7 /azalea-protocol/src/packets/game
parent8fb95866093245bd802bebec08148c87f1188db3 (diff)
downloadazalea-drasl-42f86f73f256c0219a923c5ff67a509e7a8a898d.tar.xz
add unhandled ClientboundSectionBlocksUpdatePacket
Diffstat (limited to 'azalea-protocol/src/packets/game')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs10
-rwxr-xr-xazalea-protocol/src/packets/game/mod.rs2
2 files changed, 12 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs b/azalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs
new file mode 100644
index 00000000..f220b07f
--- /dev/null
+++ b/azalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs
@@ -0,0 +1,10 @@
+use azalea_core::ChunkSectionPos;
+use packet_macros::GamePacket;
+
+#[derive(Clone, Debug, GamePacket)]
+pub struct ClientboundSectionBlocksUpdatePacket {
+ pub section_pos: ChunkSectionPos,
+ pub suppress_light_updates: bool,
+ #[var]
+ pub states: Vec<u64>,
+}
diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs
index 0391ee10..66c55cd2 100755
--- a/azalea-protocol/src/packets/game/mod.rs
+++ b/azalea-protocol/src/packets/game/mod.rs
@@ -26,6 +26,7 @@ pub mod clientbound_player_position_packet;
pub mod clientbound_recipe_packet;
pub mod clientbound_remove_entities_packet;
pub mod clientbound_rotate_head_packet;
+pub mod clientbound_section_blocks_update_packet;
pub mod clientbound_set_carried_item_packet;
pub mod clientbound_set_chunk_cache_center;
pub mod clientbound_set_default_spawn_position_packet;
@@ -80,6 +81,7 @@ declare_state_packets!(
0x39: clientbound_recipe_packet::ClientboundRecipePacket,
0x3a: clientbound_remove_entities_packet::ClientboundRemoveEntitiesPacket,
0x3e: clientbound_rotate_head_packet::ClientboundRotateHeadPacket,
+ 0x3f: clientbound_section_blocks_update_packet::ClientboundSectionBlocksUpdatePacket,
0x48: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket,
0x49: clientbound_set_chunk_cache_center::ClientboundSetChunkCacheCenterPacket,
0x4a: clientbound_update_view_distance_packet::ClientboundUpdateViewDistancePacket,