aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azalea-chat/Cargo.toml2
-rwxr-xr-xazalea-chat/src/style.rs1
-rw-r--r--azalea-entity/Cargo.toml4
-rw-r--r--azalea/src/container.rs2
4 files changed, 6 insertions, 3 deletions
diff --git a/azalea-chat/Cargo.toml b/azalea-chat/Cargo.toml
index 9610bd9b..5aaf7125 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 43b74cbf..e04c1925 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 af77428a..f7123d06 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 5406170a..be5e6c27 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<Menu> {
let ecs = self.client.ecs.lock();
let inventory = ecs