diff --git a/azalea-inventory/src/slot.rs b/azalea-inventory/src/slot.rs index 19963b34..757dc92d 100644 --- a/azalea-inventory/src/slot.rs +++ b/azalea-inventory/src/slot.rs @@ -217,11 +217,11 @@ impl DataComponentPatch { /// # assert!(!is_edible); /// ``` pub fn has(&self) -> bool { - self.components.contains_key(&T::KIND) + self.has_kind(T::KIND) } pub fn has_kind(&self, kind: DataComponentKind) -> bool { - self.components.contains_key(&kind) + self.get_kind(kind).is_some() } }