Skip to content

Commit 37cde3a

Browse files
committed
fix components, show_in_tooltip was removed
1 parent ef357fd commit 37cde3a

File tree

2 files changed

+23
-39
lines changed

2 files changed

+23
-39
lines changed

Cargo.lock

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

azalea-inventory/src/components.rs

+2-18
Original file line numberDiff line numberDiff line change
@@ -213,20 +213,11 @@ impl DataComponent for Damage {
213213
const KIND: DataComponentKind = DataComponentKind::Damage;
214214
}
215215

216-
#[derive(Clone, PartialEq, AzBuf)]
217-
pub struct Unbreakable {
218-
pub show_in_tooltip: bool,
219-
}
216+
#[derive(Clone, PartialEq, Default, AzBuf)]
217+
pub struct Unbreakable;
220218
impl DataComponent for Unbreakable {
221219
const KIND: DataComponentKind = DataComponentKind::Unbreakable;
222220
}
223-
impl Default for Unbreakable {
224-
fn default() -> Self {
225-
Self {
226-
show_in_tooltip: true,
227-
}
228-
}
229-
}
230221

231222
#[derive(Clone, PartialEq, AzBuf)]
232223
pub struct CustomName {
@@ -268,7 +259,6 @@ impl DataComponent for Rarity {
268259
pub struct Enchantments {
269260
#[var]
270261
pub levels: HashMap<Enchantment, u32>,
271-
pub show_in_tooltip: bool,
272262
}
273263
impl DataComponent for Enchantments {
274264
const KIND: DataComponentKind = DataComponentKind::Enchantments;
@@ -301,7 +291,6 @@ pub struct BlockPredicate {
301291
#[derive(Clone, PartialEq, AzBuf)]
302292
pub struct AdventureModePredicate {
303293
pub predicates: Vec<BlockPredicate>,
304-
pub show_in_tooltip: bool,
305294
}
306295

307296
#[derive(Clone, PartialEq, AzBuf)]
@@ -361,7 +350,6 @@ pub struct AttributeModifiersEntry {
361350
#[derive(Clone, PartialEq, AzBuf)]
362351
pub struct AttributeModifiers {
363352
pub modifiers: Vec<AttributeModifiersEntry>,
364-
pub show_in_tooltip: bool,
365353
}
366354
impl DataComponent for AttributeModifiers {
367355
const KIND: DataComponentKind = DataComponentKind::AttributeModifiers;
@@ -466,7 +454,6 @@ impl DataComponent for Tool {
466454
pub struct StoredEnchantments {
467455
#[var]
468456
pub enchantments: HashMap<Enchantment, i32>,
469-
pub show_in_tooltip: bool,
470457
}
471458
impl DataComponent for StoredEnchantments {
472459
const KIND: DataComponentKind = DataComponentKind::StoredEnchantments;
@@ -475,7 +462,6 @@ impl DataComponent for StoredEnchantments {
475462
#[derive(Clone, PartialEq, AzBuf)]
476463
pub struct DyedColor {
477464
pub rgb: i32,
478-
pub show_in_tooltip: bool,
479465
}
480466
impl DataComponent for DyedColor {
481467
const KIND: DataComponentKind = DataComponentKind::DyedColor;
@@ -584,7 +570,6 @@ impl DataComponent for WrittenBookContent {
584570
pub struct Trim {
585571
pub material: TrimMaterial,
586572
pub pattern: TrimPattern,
587-
pub show_in_tooltip: bool,
588573
}
589574
impl DataComponent for Trim {
590575
const KIND: DataComponentKind = DataComponentKind::Trim;
@@ -816,7 +801,6 @@ impl DataComponent for ContainerLoot {
816801
#[derive(Clone, PartialEq, AzBuf)]
817802
pub struct JukeboxPlayable {
818803
pub song: registry::JukeboxSong,
819-
pub show_in_tooltip: bool,
820804
}
821805
impl DataComponent for JukeboxPlayable {
822806
const KIND: DataComponentKind = DataComponentKind::JukeboxPlayable;

0 commit comments

Comments
 (0)