Implement API for Skeleton and Zombie types. Fixes BUKKIT-2818

This commit is contained in:
James Clarke
2012-11-05 18:09:40 +00:00
committed by Travis Watkins
parent dca54ff187
commit bd0868ae1e
3 changed files with 27 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ public class EntityZombie extends EntityMonster {
}
public void setBaby(boolean flag) {
this.getDataWatcher().watch(12, Byte.valueOf((byte) 1));
this.getDataWatcher().watch(12, Byte.valueOf((byte) (flag ? 1 : 0))); // CraftBukkit - added flag
}
public boolean isVillager() {