1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

disable feaatures on azalea-chat by default and fix disabling simdnbt feature

This commit is contained in:
mat 2023-12-06 11:36:20 -06:00
parent 1369848c82
commit 3f341aa114
4 changed files with 6 additions and 3 deletions

View file

@ -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"]

View file

@ -578,6 +578,7 @@ impl Style {
}
}
#[cfg(feature = "simdnbt")]
impl simdnbt::Deserialize for Style {
fn from_compound(
compound: &simdnbt::borrow::NbtCompound,

View file

@ -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"

View file

@ -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