aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-09-23 17:36:29 -0700
committerJake Potrebic <[email protected]>2024-09-23 17:36:32 -0700
commit9b1ee0d87db2867e1c2e8a7b0f02686de81f9826 (patch)
tree5a442085cdeb6f83ce590094c7bb9bf033301c89 /patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch
parentacdd6d35ad448f5ad06f834c7ef8b0a1a1ab89d9 (diff)
downloadPaper-9b1ee0d87db2867e1c2e8a7b0f02686de81f9826.tar.gz
Paper-9b1ee0d87db2867e1c2e8a7b0f02686de81f9826.zip
Add missing key files and cleanup registry definition order
Diffstat (limited to 'patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch')
-rw-r--r--patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch b/patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch
index 5669b4fcb5..0469174819 100644
--- a/patches/server/0471-Add-RegistryAccess-for-managing-Registries.patch
+++ b/patches/server/0471-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..70e2c3b5cac9a0dfb043de218df20dc1ab2cc070
+index 0000000000000000000000000000000000000000..c92ce42398a9bfd00eb4e05972289c521ee255cf
--- /dev/null
+++ b/src/main/java/io/papermc/paper/registry/PaperRegistries.java
@@ -0,0 +1,146 @@
@@ -87,9 +87,9 @@ index 0000000000000000000000000000000000000000..70e2c3b5cac9a0dfb043de218df20dc1
+ REGISTRY_ENTRIES = List.of(
+ // built-ins
+ entry(Registries.GAME_EVENT, RegistryKey.GAME_EVENT, GameEvent.class, CraftGameEvent::new),
++ entry(Registries.STRUCTURE_TYPE, RegistryKey.STRUCTURE_TYPE, StructureType.class, CraftStructureType::new),
+ entry(Registries.INSTRUMENT, RegistryKey.INSTRUMENT, MusicInstrument.class, CraftMusicInstrument::new),
+ entry(Registries.MOB_EFFECT, RegistryKey.MOB_EFFECT, PotionEffectType.class, CraftPotionEffectType::new),
-+ entry(Registries.STRUCTURE_TYPE, RegistryKey.STRUCTURE_TYPE, StructureType.class, CraftStructureType::new),
+ entry(Registries.BLOCK, RegistryKey.BLOCK, BlockType.class, CraftBlockType::new),
+ entry(Registries.ITEM, RegistryKey.ITEM, ItemType.class, CraftItemType::new),
+ entry(Registries.CAT_VARIANT, RegistryKey.CAT_VARIANT, Cat.Type.class, CraftCat.CraftType::new),