From cbb2ffad920ba88ad042a5d3ea932a62d42f3d4b Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 28 Dec 2023 17:49:41 -0600 Subject: read nbt as optional in more places --- azalea-protocol/Cargo.toml | 2 +- .../src/packets/game/clientbound_block_entity_data_packet.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-protocol') diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml index e5ff3824..3928af41 100644 --- a/azalea-protocol/Cargo.toml +++ b/azalea-protocol/Cargo.toml @@ -9,6 +9,7 @@ version = "0.9.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +simdnbt = { version = "0.3", git = "https://github.com/azalea-rs/simdnbt" } async-recursion = "1.0.5" azalea-auth = { path = "../azalea-auth", version = "0.9.0" } azalea-block = { path = "../azalea-block", default-features = false, version = "0.9.0" } @@ -25,7 +26,6 @@ azalea-core = { path = "../azalea-core", optional = true, version = "0.9.0", fea azalea-crypto = { path = "../azalea-crypto", version = "0.9.0" } azalea-entity = { version = "0.9.0", path = "../azalea-entity" } azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" } -simdnbt = "0.3" azalea-protocol-macros = { path = "./azalea-protocol-macros", version = "0.9.0" } azalea-registry = { path = "../azalea-registry", version = "0.9.0" } azalea-world = { path = "../azalea-world", version = "0.9.0" } diff --git a/azalea-protocol/src/packets/game/clientbound_block_entity_data_packet.rs b/azalea-protocol/src/packets/game/clientbound_block_entity_data_packet.rs index 95e9c6c3..3406a75f 100755 --- a/azalea-protocol/src/packets/game/clientbound_block_entity_data_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_block_entity_data_packet.rs @@ -1,11 +1,11 @@ use azalea_buf::McBuf; use azalea_core::position::BlockPos; use azalea_protocol_macros::ClientboundGamePacket; -use simdnbt::owned::NbtTag; +use simdnbt::owned::Nbt; #[derive(Clone, Debug, McBuf, ClientboundGamePacket)] pub struct ClientboundBlockEntityDataPacket { pub pos: BlockPos, pub block_entity_type: azalea_registry::BlockEntityKind, - pub tag: NbtTag, + pub tag: Nbt, } -- cgit v1.2.3