From 5ff377a9b2d4fcd1545ad4f80211afbaa48bc578 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 31 May 2016 20:55:17 +1000 Subject: [PATCH] SPIGOT-2336: Zombie.setVillager(Z)V --- .../java/org/bukkit/craftbukkit/entity/CraftZombie.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java index c9e68350fe..6431d041a1 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java @@ -40,7 +40,11 @@ public class CraftZombie extends CraftMonster implements Zombie { } public void setVillager(boolean flag) { - getHandle().setVillagerType(0); + if (flag) { + getHandle().setVillagerType(0); + } else { + getHandle().clearVillagerType(); + } } @Override