diff options
| author | mat <git@matdoes.dev> | 2023-12-28 17:49:41 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-28 17:49:47 -0600 |
| commit | cbb2ffad920ba88ad042a5d3ea932a62d42f3d4b (patch) | |
| tree | 41122677c94ca181e898b5d07700714f1b2f3f61 /azalea-protocol | |
| parent | cacb04718dd4142bded181d004f1fa40fe7ae178 (diff) | |
| download | azalea-drasl-cbb2ffad920ba88ad042a5d3ea932a62d42f3d4b.tar.xz | |
read nbt as optional in more places
Diffstat (limited to 'azalea-protocol')
| -rw-r--r-- | azalea-protocol/Cargo.toml | 2 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/game/clientbound_block_entity_data_packet.rs | 4 |
2 files changed, 3 insertions, 3 deletions
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, } |
