SPIGOT-7668: Move NONE Registry updater to FieldRename to avoid some class loader issues

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2024-05-19 21:35:46 +02:00
parent 04a297608d
commit 60c7d83e00
2 changed files with 13 additions and 12 deletions

View File

@@ -25,6 +25,8 @@ import org.bukkit.potion.PotionType;
public class FieldRename {
public static final BiFunction<NamespacedKey, ApiVersion, NamespacedKey> NONE = (namespacedKey, apiVersion) -> namespacedKey;
@DoNotReroute
public static String rename(ApiVersion apiVersion, String owner, String from) {
if (owner == null) {