mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 00:58:50 +01:00
Fix build on new spigot versions
Villager.Profession was moved to a registry, only breaks at compile time.
This commit is contained in:
parent
fcf6e64732
commit
8971798a90
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user