diff options
| author | mat <git@matdoes.dev> | 2024-05-23 03:24:12 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-05-23 03:24:12 +0000 |
| commit | 22baedb24b0d6b2b9148b3e0050d9bb36a4a54ab (patch) | |
| tree | fad884a15852a4eb5845af174a428a66a421f418 /codegen/lib/code/blocks.py | |
| parent | 4f6f104ddbf6895c78c3eaf3a33a51ceceac6ce4 (diff) | |
| download | azalea-drasl-22baedb24b0d6b2b9148b3e0050d9bb36a4a54ab.tar.xz | |
change property names to be unique and to match the minecraft ids
Diffstat (limited to 'codegen/lib/code/blocks.py')
| -rwxr-xr-x | codegen/lib/code/blocks.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/codegen/lib/code/blocks.py b/codegen/lib/code/blocks.py index 64347849..05788731 100755 --- a/codegen/lib/code/blocks.py +++ b/codegen/lib/code/blocks.py @@ -125,8 +125,7 @@ def generate_blocks(blocks_burger: dict, blocks_report: dict, pixlyzer_block_dat assert property_default is not None - property_name = clean_property_name(property_name) - this_property_code = f'{property_name}: {property_default_type}' + this_property_code = f'"{property_name}": {property_default_type}' properties_code += f'\n {this_property_code},' # if there's nothing inside the properties, keep it in one line |
