From 0fc6922bf3c5a48236d94aa5c0ca7c8d87756e99 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 6 Jun 2019 20:46:32 +1000 Subject: [PATCH] SPIGOT-5028: Villager#setVillagerExperience() doesn't work --- .../java/org/bukkit/craftbukkit/entity/CraftVillager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java index 83299828dc..ba769f985e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java @@ -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) {