diff options
| author | mat <git@matdoes.dev> | 2024-12-23 09:55:21 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-23 09:55:21 +0000 |
| commit | 1609b90a93d3e3d6084aaa17c463cd83beda06ca (patch) | |
| tree | 76d2ba58a7c6db0dcd82f8fd70fe0fe8495c8c3f /codegen | |
| parent | fa132b61fcd23974a1a34bc05fc4c309d304b3d1 (diff) | |
| download | azalea-drasl-1609b90a93d3e3d6084aaa17c463cd83beda06ca.tar.xz | |
rename metadata::State to metadata::SnifferState
Diffstat (limited to 'codegen')
| -rw-r--r-- | codegen/lib/code/entity.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py index a380d3d9..1d15bd0b 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -104,7 +104,7 @@ use crate::particle::Particle; use super::{ ArmadilloStateKind, EntityDataItem, EntityDataValue, OptionalUnsignedInt, Pose, Quaternion, - Rotations, SnifferState, VillagerData, + Rotations, SnifferStateKind, VillagerData, }; use azalea_chat::FormattedText; use azalea_core::{ @@ -140,6 +140,10 @@ impl From<EntityDataValue> for UpdateMetadataError { # build the duplicate_field_names set previous_field_names = set() duplicate_field_names = set() + + # some generic names... we don't like these + duplicate_field_names.add('state') # SnifferState instead of State + for entity_id in burger_entity_metadata.keys(): field_name_map[entity_id] = {} for field_name_or_bitfield in get_entity_metadata_names(entity_id, burger_entity_metadata, mappings).values(): |
