bugfix: Custom model data decoding for 1.21.4+

bugfix: Custom model data decoding for 1.21.4+
This commit is contained in:
Anon 2026-06-11 16:26:28 +02:00 committed by GitHub
commit 02b34a8d13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,10 @@ public class StructuredComponentsRegistry1212 : StructuredComponentRegistry
RegisterComponent<CanPlaceOnComponent>(11, "minecraft:can_place_on");
RegisterComponent<CanBreakComponent>(12, "minecraft:can_break");
RegisterComponent<AttributeModifiersComponent>(13, "minecraft:attribute_modifiers");
RegisterComponent<CustomModelDataComponent1206>(14, "minecraft:custom_model_data");
if (dataTypes.ProtocolVersion >= Protocol18Handler.MC_1_21_4_Version)
RegisterComponent<CustomModelDataComponent>(14, "minecraft:custom_model_data");
else
RegisterComponent<CustomModelDataComponent1206>(14, "minecraft:custom_model_data");
RegisterComponent<HideAdditionalTooltipComponent>(15, "minecraft:hide_additional_tooltip");
RegisterComponent<HideTooltipComponent>(16, "minecraft:hide_tooltip");
RegisterComponent<RepairCostComponent>(17, "minecraft:repair_cost");