diff options
| author | mat <git@matdoes.dev> | 2025-08-10 20:07:35 -0400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-10 20:07:35 -0400 |
| commit | 5bd7a4b11a37670a093fb68e0f5fb6fe8246191e (patch) | |
| tree | 8939f5afa0364ac509e8d349faf2c88a181e6485 /azalea-inventory/src | |
| parent | 7120842f9d2c659a2f12d8922299c2a761bc5582 (diff) | |
| download | azalea-drasl-5bd7a4b11a37670a093fb68e0f5fb6fe8246191e.tar.xz | |
revert PotDecorations structure update
Diffstat (limited to 'azalea-inventory/src')
| -rw-r--r-- | azalea-inventory/src/components.rs | 2 | ||||
| -rw-r--r-- | azalea-inventory/src/default_components/generated.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs index 09923af0..3da393e5 100644 --- a/azalea-inventory/src/components.rs +++ b/azalea-inventory/src/components.rs @@ -895,7 +895,7 @@ pub struct BaseColor { #[derive(Clone, PartialEq, AzBuf, Debug, Serialize)] #[serde(transparent)] pub struct PotDecorations { - pub items: [Item; 4], + pub items: Vec<Item>, } #[derive(Clone, PartialEq, AzBuf, Debug, Serialize)] diff --git a/azalea-inventory/src/default_components/generated.rs b/azalea-inventory/src/default_components/generated.rs index 6b948ec3..fe147438 100644 --- a/azalea-inventory/src/default_components/generated.rs +++ b/azalea-inventory/src/default_components/generated.rs @@ -3691,7 +3691,7 @@ impl DefaultableComponent for EnchantmentGlintOverride { impl DefaultableComponent for PotDecorations { fn default_for_item(item: Item) -> Option<Self> { let value = match item { - Item::DecoratedPot => [Item::Brick, Item::Brick, Item::Brick, Item::Brick], + Item::DecoratedPot => vec![Item::Brick, Item::Brick, Item::Brick, Item::Brick], _ => return None, }; Some(PotDecorations { items: value }) |
