diff options
author | md_5 <git@md-5.net> | 2016-05-31 20:55:17 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-05-31 20:55:17 +1000 |
commit | 5ff377a9b2d4fcd1545ad4f80211afbaa48bc578 (patch) | |
tree | a2efdd2feeae7d1208a7de4ea42079d9879037c9 /src/main/java | |
parent | 5ae53e0d5c8eca530137364681ee37825f8a3f25 (diff) | |
download | craftbukkit-5ff377a9b2d4fcd1545ad4f80211afbaa48bc578.tar craftbukkit-5ff377a9b2d4fcd1545ad4f80211afbaa48bc578.tar.gz craftbukkit-5ff377a9b2d4fcd1545ad4f80211afbaa48bc578.tar.lz craftbukkit-5ff377a9b2d4fcd1545ad4f80211afbaa48bc578.tar.xz craftbukkit-5ff377a9b2d4fcd1545ad4f80211afbaa48bc578.zip |
SPIGOT-2336: Zombie.setVillager(Z)V
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftZombie.java index c9e68350..6431d041 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 |