diff options
| author | mat <github@matdoes.dev> | 2022-05-03 00:33:32 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-03 00:33:32 -0500 |
| commit | 0bd798045c4328208667df37348e9affb37e384f (patch) | |
| tree | 241fbc2b738b2a47cd6220bb07beb450c7359ab4 /azalea-protocol | |
| parent | 8e42e1c5dfc54314585b564696044780e0407c2f (diff) | |
| download | azalea-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.rs | 15 | ||||
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs | 2 |
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, } |
