SPIGOT-2336: Zombie.setVillager(Z)V

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-05-31 20:55:17 +10:00
parent 18f37c3b32
commit c1bd122e35

View file

@ -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