diff --git a/Essentials/src/main/java/com/earth2me/essentials/MobCompat.java b/Essentials/src/main/java/com/earth2me/essentials/MobCompat.java index 092e8d775..f939d42ec 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 final class MobCompat { } private Villager.Profession asEnum() { - return EnumUtil.valueOf(Villager.Profession.class, newProfession, oldProfession); + return RegistryUtil.valueOf(Villager.Profession.class, newProfession, oldProfession); } }