aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/lib')
-rw-r--r--codegen/lib/code/blocks.py2
-rw-r--r--codegen/lib/code/entity.py10
2 files changed, 2 insertions, 10 deletions
diff --git a/codegen/lib/code/blocks.py b/codegen/lib/code/blocks.py
index 091faaea..e3becfe5 100644
--- a/codegen/lib/code/blocks.py
+++ b/codegen/lib/code/blocks.py
@@ -6,7 +6,7 @@ BLOCKS_RS_DIR = get_dir_location("../azalea-block/src/generated.rs")
# - Property: A property of a block, like "direction"
# - Variant: A potential state of a property, like "up"
# - State: A possible state of a block, a combination of variants
-# - BlockKind: Has properties and states.
+# - Block: Has properties and states.
def generate_blocks(
diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py
index f6ca7c7b..75ca72e5 100644
--- a/codegen/lib/code/entity.py
+++ b/codegen/lib/code/entity.py
@@ -4,9 +4,7 @@ from typing import Optional
import re
METADATA_RS_DIR = get_dir_location("../azalea-entity/src/metadata.rs")
-
DATA_RS_DIR = get_dir_location("../azalea-entity/src/data.rs")
-
DIMENSIONS_RS_DIR = get_dir_location("../azalea-entity/src/dimensions.rs")
@@ -513,13 +511,7 @@ impl From<EntityDataValue> for UpdateMetadataError {
this_entity_parent_ids[1] if len(this_entity_parent_ids) > 1 else None
)
if this_entity_parent_id:
- bundle_struct_name = (
- upper_first_letter(to_camel_case(this_entity_parent_id.lstrip("~")))
- + "MetadataBundle"
- )
- code.append(f" parent: {bundle_struct_name} {{")
- generate_fields(this_entity_parent_id)
- code.append(" },")
+ code.append(" parent: Default::default(),")
for index, name_or_bitfield in get_entity_metadata_names(
this_entity_id, burger_entity_metadata, mappings