aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xazalea-core/src/bitset.rs5
-rwxr-xr-xazalea-core/src/lib.rs1
-rw-r--r--azalea-inventory/src/slot.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/azalea-core/src/bitset.rs b/azalea-core/src/bitset.rs
index de9d00f3..ac698fbc 100755
--- a/azalea-core/src/bitset.rs
+++ b/azalea-core/src/bitset.rs
@@ -174,10 +174,7 @@ impl<const N: usize> AzaleaWrite for FixedBitSet<N> {
Ok(())
}
}
-impl<const N: usize> Default for FixedBitSet<N>
-where
- [u8; N.div_ceil(8)]: Sized,
-{
+impl<const N: usize> Default for FixedBitSet<N> {
fn default() -> Self {
Self::new()
}
diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs
index 1596a673..acfb560e 100755
--- a/azalea-core/src/lib.rs
+++ b/azalea-core/src/lib.rs
@@ -1,7 +1,6 @@
#![doc = include_str!("../README.md")]
#![feature(trait_upcasting)]
#![allow(incomplete_features)]
-#![feature(generic_const_exprs)]
pub mod aabb;
pub mod bitset;
diff --git a/azalea-inventory/src/slot.rs b/azalea-inventory/src/slot.rs
index 568ca441..f541c54d 100644
--- a/azalea-inventory/src/slot.rs
+++ b/azalea-inventory/src/slot.rs
@@ -172,6 +172,10 @@ impl AzaleaWrite for ItemStack {
}
}
+/// An update to an item's data components.
+///
+/// Note that in vanilla items come with their own set of default components,
+/// and Azalea does not implement that yet.
#[derive(Default)]
pub struct DataComponentPatch {
components: HashMap<DataComponentKind, Option<Box<dyn components::EncodableDataComponent>>>,