From 3f341aa11452b4dfe0b61af23efe9742a4d3f277 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 6 Dec 2023 11:36:20 -0600 Subject: [PATCH] disable feaatures on azalea-chat by default and fix disabling simdnbt feature --- azalea-chat/Cargo.toml | 2 +- azalea-chat/src/style.rs | 1 + azalea-entity/Cargo.toml | 4 +++- azalea/src/container.rs | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/azalea-chat/Cargo.toml b/azalea-chat/Cargo.toml index 9610bd9ba..5aaf7125c 100644 --- a/azalea-chat/Cargo.toml +++ b/azalea-chat/Cargo.toml @@ -9,7 +9,7 @@ version = "0.9.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -default = ["azalea-buf"] +default = [] azalea-buf = ["dep:azalea-buf", "simdnbt"] numbers = ["dep:azalea-registry", "dep:simdnbt"] simdnbt = ["dep:simdnbt"] diff --git a/azalea-chat/src/style.rs b/azalea-chat/src/style.rs index 43b74cbf5..e04c19254 100755 --- a/azalea-chat/src/style.rs +++ b/azalea-chat/src/style.rs @@ -578,6 +578,7 @@ impl Style { } } +#[cfg(feature = "simdnbt")] impl simdnbt::Deserialize for Style { fn from_compound( compound: &simdnbt::borrow::NbtCompound, diff --git a/azalea-entity/Cargo.toml b/azalea-entity/Cargo.toml index af77428ad..f7123d060 100644 --- a/azalea-entity/Cargo.toml +++ b/azalea-entity/Cargo.toml @@ -11,7 +11,9 @@ license = "MIT" [dependencies] azalea-block = { version = "0.9.0", path = "../azalea-block" } azalea-buf = { version = "0.9.0", path = "../azalea-buf" } -azalea-chat = { version = "0.9.0", path = "../azalea-chat" } +azalea-chat = { version = "0.9.0", path = "../azalea-chat", features = [ + "azalea-buf", +] } azalea-core = { version = "0.9.0", path = "../azalea-core" } azalea-inventory = { version = "0.9.0", path = "../azalea-inventory" } simdnbt = "0.3" diff --git a/azalea/src/container.rs b/azalea/src/container.rs index 5406170a9..be5e6c27b 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -140,7 +140,7 @@ impl ContainerHandle { /// /// Note that any modifications you make to the `Menu` you're given will not /// actually cause any packets to be sent. If you're trying to modify your - /// inventory, use [`Client::open_inventory`] instead + /// inventory, use [`Client::click`] instead pub fn menu(&self) -> Option { let ecs = self.client.ecs.lock(); let inventory = ecs