summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-27 07:00:56 +1000
committermd_5 <git@md-5.net>2018-08-27 07:00:56 +1000
commit479ec05e3b15937ae7e988d9050d167fc6ba307d (patch)
tree83f0cd858375c8c2c87deee025edc2000651f6ba /src
parent6dee81a6f71422b4559f39c6a8349020503839ca (diff)
downloadcraftbukkit-479ec05e3b15937ae7e988d9050d167fc6ba307d.tar
craftbukkit-479ec05e3b15937ae7e988d9050d167fc6ba307d.tar.gz
craftbukkit-479ec05e3b15937ae7e988d9050d167fc6ba307d.tar.lz
craftbukkit-479ec05e3b15937ae7e988d9050d167fc6ba307d.tar.xz
craftbukkit-479ec05e3b15937ae7e988d9050d167fc6ba307d.zip
SPIGOT-4310: Reset villager career level with trades
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java
index a6ee01ca..e9222580 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java
@@ -70,6 +70,7 @@ public class CraftVillager extends CraftAgeable implements Villager, InventoryHo
if (resetTrades) {
getHandle().trades = null;
+ getHandle().bQ = 0; // SPIGOT-4310
getHandle().populateTrades();
}
}