Skip to content

Commit

Permalink
disable feaatures on azalea-chat by default and fix disabling simdnbt…
Browse files Browse the repository at this point in the history
… feature
  • Loading branch information
mat-1 committed Dec 6, 2023
1 parent 1369848 commit 3f341aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azalea-chat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions azalea-chat/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ impl Style {
}
}

#[cfg(feature = "simdnbt")]
impl simdnbt::Deserialize for Style {
fn from_compound(
compound: &simdnbt::borrow::NbtCompound,
Expand Down
4 changes: 3 additions & 1 deletion azalea-entity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion azalea/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f341aa

Please sign in to comment.