diff options
| author | mat <git@matdoes.dev> | 2025-04-12 13:37:27 -1200 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-04-12 13:37:27 -1200 |
| commit | 31b143f821efb4a7539a2ad43b5684813e83069c (patch) | |
| tree | 0cd3dc62d33e611445f2728c19bf10089fe14eeb | |
| parent | 3112dc3ea0fd128a35717e4fed1aed839be7e633 (diff) | |
| download | azalea-drasl-31b143f821efb4a7539a2ad43b5684813e83069c.tar.xz | |
fix ChickenVariant data component
| -rw-r--r-- | azalea-inventory/src/components.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs index 89847ead..df0999a9 100644 --- a/azalea-inventory/src/components.rs +++ b/azalea-inventory/src/components.rs @@ -1262,9 +1262,15 @@ impl DataComponent for CowVariant { } #[derive(Clone, PartialEq, AzBuf)] -pub struct ChickenVariant { - pub variant: azalea_registry::ChickenVariant, +pub enum ChickenVariant { + Registry(azalea_registry::ChickenVariant), + Direct(ChickenVariantData), } impl DataComponent for ChickenVariant { const KIND: DataComponentKind = DataComponentKind::ChickenVariant; } +#[derive(Clone, PartialEq, AzBuf)] +pub struct ChickenVariantData { + // not a typo, as of 1.21.5 chicken variants do actually seem to be encoded like this + pub registry: azalea_registry::ChickenVariant, +} |
