aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-28 19:51:31 -0500
committermat <github@matdoes.dev>2022-04-28 19:51:31 -0500
commitb6fb96429c4530530f46e5deb5998f2249e5124e (patch)
tree0fe8a5b2b5823f978d85438c633cbf80fa7ad82d /azalea-protocol/src/packets
parent1ca9caee36fb84e4a34be4d6b11399fcea8e8389 (diff)
downloadazalea-drasl-b6fb96429c4530530f46e5deb5998f2249e5124e.tar.xz
chunk packets work
Diffstat (limited to 'azalea-protocol/src/packets')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_level_chunk_with_light_packet.rs2
-rw-r--r--azalea-protocol/src/packets/game/clientbound_light_update_packet.rs7
2 files changed, 4 insertions, 5 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 0dcb0ff2..6882d255 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
@@ -14,7 +14,7 @@ pub struct ClientboundLevelChunkWithLightPacket {
pub struct ClientboundLevelChunkPacketData {
heightmaps: azalea_nbt::Tag,
data: Vec<u8>,
- block_entities: BlockEntity,
+ block_entities: Vec<BlockEntity>,
}
#[derive(Clone, Debug, McBufReadable, McBufWritable)]
diff --git a/azalea-protocol/src/packets/game/clientbound_light_update_packet.rs b/azalea-protocol/src/packets/game/clientbound_light_update_packet.rs
index 8e53e12e..c97eacff 100644
--- a/azalea-protocol/src/packets/game/clientbound_light_update_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_light_update_packet.rs
@@ -1,6 +1,6 @@
use crate::mc_buf::BitSet;
use azalea_core::{game_type::GameType, resource_location::ResourceLocation};
-use packet_macros::GamePacket;
+use packet_macros::{GamePacket, McBufReadable, McBufWritable};
#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundLightUpdatePacket {
@@ -16,7 +16,6 @@ pub struct ClientboundLightUpdatePacketData {
block_y_mask: BitSet,
empty_sky_y_mask: BitSet,
empty_block_y_mask: BitSet,
- sky_updates: Vec<>,
- block_updates: BitSet,
-
+ sky_updates: Vec<Vec<u8>>,
+ block_updates: Vec<Vec<u8>>,
}