geforkt von Mirrors/Paper
SPIGOT-5028: Villager#setVillagerExperience() doesn't work
Dieser Commit ist enthalten in:
Ursprung
bdbdbe4459
Commit
0fc6922bf3
@ -68,14 +68,14 @@ public class CraftVillager extends CraftAbstractVillager implements Villager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getVillagerExperience() {
|
public int getVillagerExperience() {
|
||||||
return getHandle().dV();
|
return getHandle().getExperience();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVillagerExperience(int experience) {
|
public void setVillagerExperience(int experience) {
|
||||||
Preconditions.checkArgument(experience >= 0, "Experience must be positive");
|
Preconditions.checkArgument(experience >= 0, "Experience must be positive");
|
||||||
|
|
||||||
getHandle().t(experience);
|
getHandle().setExperience(experience);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Profession nmsToBukkitProfession(VillagerProfession nms) {
|
public static Profession nmsToBukkitProfession(VillagerProfession nms) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren