mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix custom model data decoding for 1.21.4
This commit is contained in:
parent
883ed12ccd
commit
16637f7eba
1 changed files with 4 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue