From 22baedb24b0d6b2b9148b3e0050d9bb36a4a54ab Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 23 May 2024 03:24:12 +0000 Subject: change property names to be unique and to match the minecraft ids --- codegen/lib/code/blocks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'codegen/lib/code/blocks.py') 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 -- cgit v1.2.3