diff options
| author | mat <git@matdoes.dev> | 2026-05-06 23:52:07 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | 35013ff740c08fc0c762c7510117c70ddd422769 (patch) | |
| tree | 6463a50d80180063e23fe2e5d7f71dca9a63f3e4 /codegen | |
| parent | ee7358ebc2d3a033b48b3a97af4255e1efba9ef9 (diff) | |
| download | azalea-drasl-35013ff740c08fc0c762c7510117c70ddd422769.tar.xz | |
26.1.2
Diffstat (limited to 'codegen')
| -rw-r--r-- | codegen/lib/code/data_components.py | 5 | ||||
| -rw-r--r-- | codegen/migrate.py | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/codegen/lib/code/data_components.py b/codegen/lib/code/data_components.py index 992ba83f..a96d2dc7 100644 --- a/codegen/lib/code/data_components.py +++ b/codegen/lib/code/data_components.py @@ -208,6 +208,11 @@ use crate::{ component_value ) + # sort the dict by component id to reduce reordering on updates + components_to_item_defaults = dict( + sorted(components_to_item_defaults.items(), key=lambda k: k[0]) + ) + registries = lib.extract.get_builtin_registries_report(version_id) item_resource_id_to_protocol_id = {} item_resource_ids = [None] * len(registries["minecraft:item"]["entries"]) diff --git a/codegen/migrate.py b/codegen/migrate.py index 100eaf17..21cdc017 100644 --- a/codegen/migrate.py +++ b/codegen/migrate.py @@ -50,7 +50,9 @@ lib.code.blocks.generate_blocks( new_ordered_blocks, new_burger_data, ) -lib.code.shapes.generate_block_shapes(new_pumpkin_blocks_data, new_block_states_report) +lib.code.shapes.generate_block_shapes( + new_pumpkin_blocks_data, new_block_states_report, new_burger_data +) print("Getting en_us.json...") language = lib.extract.get_en_us_lang(new_version_id) |
