Skip to content

Commit

Permalink
Fix build on new spigot versions
Browse files Browse the repository at this point in the history
Villager.Profession was moved to a registry, only breaks at compile time.
  • Loading branch information
JRoy committed Jul 13, 2024
1 parent fcf6e64 commit 8971798
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 8971798

Please sign in to comment.