mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-5028: Villager#setVillagerExperience() doesn't work
By: md_5 <git@md-5.net>
This commit is contained in:
parent
55ad5c0352
commit
aaf46051fc
1 changed files with 2 additions and 2 deletions
|
@ -68,14 +68,14 @@ public class CraftVillager extends CraftAbstractVillager implements Villager {
|
|||
|
||||
@Override
|
||||
public int getVillagerExperience() {
|
||||
return getHandle().dV();
|
||||
return getHandle().getExperience();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVillagerExperience(int experience) {
|
||||
Preconditions.checkArgument(experience >= 0, "Experience must be positive");
|
||||
|
||||
getHandle().t(experience);
|
||||
getHandle().setExperience(experience);
|
||||
}
|
||||
|
||||
public static Profession nmsToBukkitProfession(VillagerProfession nms) {
|
||||
|
|
Loading…
Add table
Reference in a new issue