diff options
author | Jake Potrebic <[email protected]> | 2024-10-31 20:35:06 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2024-10-31 20:35:06 -0700 |
commit | 16d7d73bd590d4c0e99124feae8a46225222a541 (patch) | |
tree | 894302e9467e695ad70320a265124b4b298fc64c /patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch | |
parent | 1de01302d4014430384f2887b2af56fa655c1734 (diff) | |
download | Paper-16d7d73bd590d4c0e99124feae8a46225222a541.tar.gz Paper-16d7d73bd590d4c0e99124feae8a46225222a541.zip |
bunch more general fixes
Diffstat (limited to 'patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch')
-rw-r--r-- | patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch b/patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch index fbb76f2784..81d859b6fb 100644 --- a/patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch +++ b/patches/server/0467-Add-RegistryAccess-for-managing-Registries.patch @@ -12,7 +12,7 @@ public net.minecraft.server.RegistryLayer STATIC_ACCESS diff --git a/src/main/java/io/papermc/paper/registry/PaperRegistries.java b/src/main/java/io/papermc/paper/registry/PaperRegistries.java new file mode 100644 -index 0000000000000000000000000000000000000000..b5df90b500a64ee3ba1026fa3449ca6441293367 +index 0000000000000000000000000000000000000000..9657c35ffbcc12061b394b97c97224e699c99b4f --- /dev/null +++ b/src/main/java/io/papermc/paper/registry/PaperRegistries.java @@ -0,0 +1,152 @@ @@ -108,6 +108,7 @@ index 0000000000000000000000000000000000000000..b5df90b500a64ee3ba1026fa3449ca64 + entry(Registries.FLUID, RegistryKey.FLUID, Fluid.class, CraftFluid::new), + + // data-drivens ++ entry(Registries.BIOME, RegistryKey.BIOME, Biome.class, CraftBiome::new).delayed(), + entry(Registries.STRUCTURE, RegistryKey.STRUCTURE, Structure.class, CraftStructure::new).delayed(), + entry(Registries.TRIM_MATERIAL, RegistryKey.TRIM_MATERIAL, TrimMaterial.class, CraftTrimMaterial::new).delayed(), + entry(Registries.TRIM_PATTERN, RegistryKey.TRIM_PATTERN, TrimPattern.class, CraftTrimPattern::new).delayed(), @@ -116,7 +117,6 @@ index 0000000000000000000000000000000000000000..b5df90b500a64ee3ba1026fa3449ca64 + entry(Registries.ENCHANTMENT, RegistryKey.ENCHANTMENT, Enchantment.class, CraftEnchantment::new).withSerializationUpdater(FieldRename.ENCHANTMENT_RENAME).delayed(), + entry(Registries.JUKEBOX_SONG, RegistryKey.JUKEBOX_SONG, JukeboxSong.class, CraftJukeboxSong::new).delayed(), + entry(Registries.BANNER_PATTERN, RegistryKey.BANNER_PATTERN, PatternType.class, CraftPatternType::new).delayed(), -+ entry(Registries.BIOME, RegistryKey.BIOME, Biome.class, CraftBiome::new).delayed(), + + // api-only + apiOnly(Registries.PAINTING_VARIANT, RegistryKey.PAINTING_VARIANT, () -> org.bukkit.Registry.ART), |