From 37cde3ad3245675c54e70a4ded362f2a60f0d8a4 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 26 Mar 2025 00:00:25 +0000 Subject: fix components, show_in_tooltip was removed --- azalea-inventory/src/components.rs | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'azalea-inventory/src') diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs index 13aa76f5..baeb3457 100644 --- a/azalea-inventory/src/components.rs +++ b/azalea-inventory/src/components.rs @@ -213,20 +213,11 @@ impl DataComponent for Damage { const KIND: DataComponentKind = DataComponentKind::Damage; } -#[derive(Clone, PartialEq, AzBuf)] -pub struct Unbreakable { - pub show_in_tooltip: bool, -} +#[derive(Clone, PartialEq, Default, AzBuf)] +pub struct Unbreakable; impl DataComponent for Unbreakable { const KIND: DataComponentKind = DataComponentKind::Unbreakable; } -impl Default for Unbreakable { - fn default() -> Self { - Self { - show_in_tooltip: true, - } - } -} #[derive(Clone, PartialEq, AzBuf)] pub struct CustomName { @@ -268,7 +259,6 @@ impl DataComponent for Rarity { pub struct Enchantments { #[var] pub levels: HashMap, - pub show_in_tooltip: bool, } impl DataComponent for Enchantments { const KIND: DataComponentKind = DataComponentKind::Enchantments; @@ -301,7 +291,6 @@ pub struct BlockPredicate { #[derive(Clone, PartialEq, AzBuf)] pub struct AdventureModePredicate { pub predicates: Vec, - pub show_in_tooltip: bool, } #[derive(Clone, PartialEq, AzBuf)] @@ -361,7 +350,6 @@ pub struct AttributeModifiersEntry { #[derive(Clone, PartialEq, AzBuf)] pub struct AttributeModifiers { pub modifiers: Vec, - pub show_in_tooltip: bool, } impl DataComponent for AttributeModifiers { const KIND: DataComponentKind = DataComponentKind::AttributeModifiers; @@ -466,7 +454,6 @@ impl DataComponent for Tool { pub struct StoredEnchantments { #[var] pub enchantments: HashMap, - pub show_in_tooltip: bool, } impl DataComponent for StoredEnchantments { const KIND: DataComponentKind = DataComponentKind::StoredEnchantments; @@ -475,7 +462,6 @@ impl DataComponent for StoredEnchantments { #[derive(Clone, PartialEq, AzBuf)] pub struct DyedColor { pub rgb: i32, - pub show_in_tooltip: bool, } impl DataComponent for DyedColor { const KIND: DataComponentKind = DataComponentKind::DyedColor; @@ -584,7 +570,6 @@ impl DataComponent for WrittenBookContent { pub struct Trim { pub material: TrimMaterial, pub pattern: TrimPattern, - pub show_in_tooltip: bool, } impl DataComponent for Trim { const KIND: DataComponentKind = DataComponentKind::Trim; @@ -816,7 +801,6 @@ impl DataComponent for ContainerLoot { #[derive(Clone, PartialEq, AzBuf)] pub struct JukeboxPlayable { pub song: registry::JukeboxSong, - pub show_in_tooltip: bool, } impl DataComponent for JukeboxPlayable { const KIND: DataComponentKind = DataComponentKind::JukeboxPlayable; -- cgit v1.2.3