Fix build on new spigot versions

Villager.Profession was moved to a registry, only breaks at compile time.
This commit is contained in:
JRoy 2024-07-13 18:24:33 -04:00 committed by Josh Roy
parent fcf6e64732
commit 8971798a90

View File

@ -296,7 +296,7 @@ public final class MobCompat {
} }
private Villager.Profession asEnum() { private Villager.Profession asEnum() {
return EnumUtil.valueOf(Villager.Profession.class, newProfession, oldProfession); return RegistryUtil.valueOf(Villager.Profession.class, newProfession, oldProfession);
} }
} }