From 8971798a90591103135f42c045af75dd0cd129c1 Mon Sep 17 00:00:00 2001 From: JRoy <10731363+JRoy@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:24:33 -0400 Subject: [PATCH] Fix build on new spigot versions Villager.Profession was moved to a registry, only breaks at compile time. --- Essentials/src/main/java/com/earth2me/essentials/MobCompat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/MobCompat.java b/Essentials/src/main/java/com/earth2me/essentials/MobCompat.java index 092e8d775b3..f939d42ec97 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/MobCompat.java +++ b/Essentials/src/main/java/com/earth2me/essentials/MobCompat.java @@ -296,7 +296,7 @@ public enum VillagerProfession { } private Villager.Profession asEnum() { - return EnumUtil.valueOf(Villager.Profession.class, newProfession, oldProfession); + return RegistryUtil.valueOf(Villager.Profession.class, newProfession, oldProfession); } }