mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
fix ChickenVariant data component
This commit is contained in:
parent
3112dc3ea0
commit
31b143f821
1 changed files with 8 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue