aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-04-28 17:00:20 +0000
committermat <github@matdoes.dev>2023-04-28 17:00:20 +0000
commit64e084934e110bbf4187fdbb44d870381ac6a816 (patch)
treed7e6d867ad18ab4ef795ac37e2fea5e3ec703ff6 /azalea-protocol/src/packets
parent88b09f7791b51639f8191cc88c98fbd13fa7e3d4 (diff)
downloadazalea-drasl-64e084934e110bbf4187fdbb44d870381ac6a816.tar.xz
23w17a
Diffstat (limited to 'azalea-protocol/src/packets')
-rwxr-xr-xazalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs10
-rwxr-xr-xazalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs3
-rwxr-xr-xazalea-protocol/src/packets/mod.rs2
3 files changed, 8 insertions, 7 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs b/azalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs
index 30813013..2fc00f83 100755
--- a/azalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs
@@ -1,4 +1,5 @@
use azalea_buf::McBuf;
+use azalea_nbt::Nbt;
use azalea_protocol_macros::ClientboundGamePacket;
use super::clientbound_light_update_packet::ClientboundLightUpdatePacketData;
@@ -13,8 +14,8 @@ pub struct ClientboundLevelChunkWithLightPacket {
#[derive(Clone, Debug, McBuf)]
pub struct ClientboundLevelChunkPacketData {
- pub heightmaps: azalea_nbt::Nbt,
- // we can't parse the data in azalea-protocol because it dependso on context from other packets
+ pub heightmaps: Nbt,
+ // we can't parse the data in azalea-protocol because it depends on context from other packets
pub data: Vec<u8>,
pub block_entities: Vec<BlockEntity>,
}
@@ -23,7 +24,6 @@ pub struct ClientboundLevelChunkPacketData {
pub struct BlockEntity {
pub packed_xz: u8,
pub y: u16,
- #[var]
- pub type_: i32,
- pub data: azalea_nbt::Nbt,
+ pub kind: azalea_registry::BlockEntityKind,
+ pub data: Nbt,
}
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
index 1ea9f676..4b830fd5 100755
--- a/azalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_section_blocks_update_packet.rs
@@ -1,10 +1,11 @@
+use std::io::{Cursor, Write};
+
use azalea_block::BlockState;
use azalea_buf::{
BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable,
};
use azalea_core::{ChunkSectionBlockPos, ChunkSectionPos};
use azalea_protocol_macros::ClientboundGamePacket;
-use std::io::{Cursor, Write};
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundSectionBlocksUpdatePacket {
diff --git a/azalea-protocol/src/packets/mod.rs b/azalea-protocol/src/packets/mod.rs
index 1ed87b1b..62530927 100755
--- a/azalea-protocol/src/packets/mod.rs
+++ b/azalea-protocol/src/packets/mod.rs
@@ -10,7 +10,7 @@ use std::io::{Cursor, Write};
// TODO: rename the packet files to just like clientbound_add_entity instead of
// clientbound_add_entity_packet
-pub const PROTOCOL_VERSION: u32 = 1073741955;
+pub const PROTOCOL_VERSION: u32 = 1073741956;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum ConnectionProtocol {