diff options
Diffstat (limited to 'codegen/lib/code/blocks.py')
| -rw-r--r-- | codegen/lib/code/blocks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/codegen/lib/code/blocks.py b/codegen/lib/code/blocks.py index 550ccf83..9f783690 100644 --- a/codegen/lib/code/blocks.py +++ b/codegen/lib/code/blocks.py @@ -74,7 +74,9 @@ def generate_blocks( else: property_shape_code = f"{property_struct_name} {{\n" for variant in property_variants: - property_shape_code += f" {to_camel_case(variant)},\n" + property_shape_code += ( + f' {to_camel_case(variant)} = "{variant}",\n' + ) property_shape_code += " }" new_make_block_states_macro_code.append( |
