From cac25feb6c43793a84396ac4a19e90df19d1f235 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 21 Mar 2026 13:07:23 +0700 Subject: cleanup and slightly speed up is_block_state_standable --- codegen/lib/code/blocks.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'codegen/lib/code') diff --git a/codegen/lib/code/blocks.py b/codegen/lib/code/blocks.py index 722a0581..672f6420 100644 --- a/codegen/lib/code/blocks.py +++ b/codegen/lib/code/blocks.py @@ -212,13 +212,13 @@ def get_property_struct_name( ]: return "StairShape" if property_variants == ["normal", "sticky"]: - return "PistonType" + return "PistonKind" if property_variants == ["x", "z"]: return "AxisXZ" if property_variants == ["single", "left", "right"]: - return "ChestType" + return "ChestKind" if property_variants == ["compare", "subtract"]: - return "ComparatorType" + return "ComparatorKind" if property_variants == [ "inactive", "waiting_for_players", @@ -234,6 +234,8 @@ def get_property_struct_name( return "TestMode" if property_variants == ["save", "load", "corner", "data"]: return "StructureMode" + if property_variants == ["top", "bottom", "double"]: + return "SlabKind" if "harp" in property_variants and "didgeridoo" in property_variants: return "Sound" if property_variants == ["up", "side", "none"]: -- cgit v1.2.3