From 479ec05e3b15937ae7e988d9050d167fc6ba307d Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 27 Aug 2018 07:00:56 +1000 Subject: SPIGOT-4310: Reset villager career level with trades --- src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(); } } -- cgit v1.2.3