diff options
| author | mat <git@matdoes.dev> | 2026-03-21 13:07:23 +0700 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-23 05:14:23 +1000 |
| commit | cac25feb6c43793a84396ac4a19e90df19d1f235 (patch) | |
| tree | 0e78bb4e88b1c2d91a86cc3a278c9d2c2a944f14 /codegen/lib/code | |
| parent | 88606d9ce9e13fcdd4ab5ce26e52630dee614c1e (diff) | |
| download | azalea-drasl-cac25feb6c43793a84396ac4a19e90df19d1f235.tar.xz | |
cleanup and slightly speed up is_block_state_standable
Diffstat (limited to 'codegen/lib/code')
| -rw-r--r-- | codegen/lib/code/blocks.py | 8 |
1 files changed, 5 insertions, 3 deletions
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"]: |
