aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-03 00:33:32 -0500
committermat <github@matdoes.dev>2022-05-03 00:33:32 -0500
commit0bd798045c4328208667df37348e9affb37e384f (patch)
tree241fbc2b738b2a47cd6220bb07beb450c7359ab4 /azalea-protocol
parent8e42e1c5dfc54314585b564696044780e0407c2f (diff)
downloadazalea-drasl-0bd798045c4328208667df37348e9affb37e384f.tar.xz
more azalea-world stuff
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs15
-rw-r--r--azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs2
2 files changed, 8 insertions, 9 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 6810ceb2..1d4bf58c 100644
--- 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
@@ -12,18 +12,17 @@ pub struct ClientboundLevelChunkWithLightPacket {
#[derive(Clone, Debug, McBufReadable, McBufWritable)]
pub struct ClientboundLevelChunkPacketData {
- heightmaps: azalea_nbt::Tag,
+ pub heightmaps: azalea_nbt::Tag,
// we can't parse the data in azalea-protocol because it dependso on context from other packets
- data: Vec<u8>,
- block_entities: Vec<BlockEntity>,
+ pub data: Vec<u8>,
+ pub block_entities: Vec<BlockEntity>,
}
#[derive(Clone, Debug, McBufReadable, McBufWritable)]
pub struct BlockEntity {
- packed_xz: u8,
- y: u16,
+ pub packed_xz: u8,
+ pub y: u16,
#[varint]
- type_: i32,
- data: azalea_nbt::Tag,
+ pub type_: i32,
+ pub data: azalea_nbt::Tag,
}
-
diff --git a/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs b/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs
index 482dc0c7..5b6de0c9 100644
--- a/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs
+++ b/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs
@@ -5,5 +5,5 @@ pub struct ClientboundSetChunkCacheCenterPacket {
#[varint]
pub x: i32,
#[varint]
- pub y: i32,
+ pub z: i32,
}