From 35013ff740c08fc0c762c7510117c70ddd422769 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 6 May 2026 23:52:07 -0600 Subject: 26.1.2 --- codegen/lib/code/data_components.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'codegen/lib') 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"]) -- cgit v1.2.3