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/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'codegen/lib/code/utils.py') diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py index f4f9ca82..71b7d7d8 100755 --- a/codegen/lib/code/utils.py +++ b/codegen/lib/code/utils.py @@ -177,12 +177,12 @@ def fmt(): def clean_property_name(property_name): # if the name ends with _, remove that part - ending = property_name.split('_')[-1] - if ending.isdigit(): - property_name = property_name[:-(len(ending) + 1)] + # ending = property_name.split('_')[-1] + # if ending.isdigit(): + # property_name = property_name[:-(len(ending) + 1)] # `type` is a reserved keyword, so we use kind instead ¯\_(ツ)_/¯ - if property_name == 'type': - property_name = 'kind' + # if property_name == 'type': + # property_name = 'kind' return property_name -- cgit v1.2.3