From 95565e0f4f99767805b70c408020369fb7d777c7 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sun, 8 Jun 2025 18:33:24 -0700 Subject: [PATCH] Add missing attribute serialization updater --- .../java/io/papermc/generator/registry/RegistryEntries.java | 2 +- .../main/java/io/papermc/paper/registry/PaperRegistries.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-generator/src/main/java/io/papermc/generator/registry/RegistryEntries.java b/paper-generator/src/main/java/io/papermc/generator/registry/RegistryEntries.java index 38f8c83e8d..a7e2de3e93 100644 --- a/paper-generator/src/main/java/io/papermc/generator/registry/RegistryEntries.java +++ b/paper-generator/src/main/java/io/papermc/generator/registry/RegistryEntries.java @@ -155,7 +155,7 @@ public final class RegistryEntries { entry(Registries.VILLAGER_TYPE, VillagerType.class, Villager.Type.class), entry(Registries.MAP_DECORATION_TYPE, MapDecorationTypes.class, MapCursor.Type.class), entry(Registries.MENU, net.minecraft.world.inventory.MenuType.class, MenuType.class), - entry(Registries.ATTRIBUTE, Attributes.class, Attribute.class), + entry(Registries.ATTRIBUTE, Attributes.class, Attribute.class).serializationUpdater("ATTRIBUTE_RENAME"), entry(Registries.FLUID, Fluids.class, Fluid.class), entry(Registries.SOUND_EVENT, SoundEvents.class, Sound.class).allowDirect().apiRegistryField("SOUNDS"), entry(Registries.DATA_COMPONENT_TYPE, DataComponents.class, DataComponentType.class, "Paper").preload(DataComponentTypes.class).apiAccessName("of") diff --git a/paper-server/src/main/java/io/papermc/paper/registry/PaperRegistries.java b/paper-server/src/main/java/io/papermc/paper/registry/PaperRegistries.java index b0d34b7496..16b27434f2 100644 --- a/paper-server/src/main/java/io/papermc/paper/registry/PaperRegistries.java +++ b/paper-server/src/main/java/io/papermc/paper/registry/PaperRegistries.java @@ -106,7 +106,7 @@ public final class PaperRegistries { start(Registries.VILLAGER_TYPE, RegistryKey.VILLAGER_TYPE).craft(Villager.Type.class, CraftVillager.CraftType::new).build(), start(Registries.MAP_DECORATION_TYPE, RegistryKey.MAP_DECORATION_TYPE).craft(MapCursor.Type.class, CraftMapCursor.CraftType::new).build(), start(Registries.MENU, RegistryKey.MENU).craft(MenuType.class, CraftMenuType::new).build(), - start(Registries.ATTRIBUTE, RegistryKey.ATTRIBUTE).craft(Attribute.class, CraftAttribute::new).build(), + start(Registries.ATTRIBUTE, RegistryKey.ATTRIBUTE).craft(Attribute.class, CraftAttribute::new).serializationUpdater(FieldRename.ATTRIBUTE_RENAME).build(), start(Registries.FLUID, RegistryKey.FLUID).craft(Fluid.class, CraftFluid::new).build(), start(Registries.SOUND_EVENT, RegistryKey.SOUND_EVENT).craft(Sound.class, CraftSound::new, true).build(), start(Registries.DATA_COMPONENT_TYPE, RegistryKey.DATA_COMPONENT_TYPE).craft(DataComponentTypes.class, PaperDataComponentType::of).build(),