diff options
Diffstat (limited to 'patches/server/0532-TODO-Registry-Modification-API.patch')
-rw-r--r-- | patches/server/0532-TODO-Registry-Modification-API.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0532-TODO-Registry-Modification-API.patch b/patches/server/0532-TODO-Registry-Modification-API.patch new file mode 100644 index 0000000000..c247dad753 --- /dev/null +++ b/patches/server/0532-TODO-Registry-Modification-API.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jake Potrebic <[email protected]> +Date: Mon, 27 Feb 2023 18:28:39 -0800 +Subject: [PATCH] TODO Registry Modification API + + +diff --git a/src/main/java/org/bukkit/craftbukkit/CraftRegistry.java b/src/main/java/org/bukkit/craftbukkit/CraftRegistry.java +index 5f40159ecb2e235ba5a821c33c9ec3ce72860a7a..004bfaa563d901e042bf31cfac2993188f1190ff 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftRegistry.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftRegistry.java +@@ -62,6 +62,7 @@ public class CraftRegistry<B extends Keyed, M> implements Registry<B> { + if (bukkitClass == TrimPattern.class) { + return new CraftRegistry<>(TrimPattern.class, registryHolder.registryOrThrow(Registries.TRIM_PATTERN), CraftTrimPattern::new); + } ++ // TODO registry modification API + + return null; + } |