summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorJames Clarke <jamesrtclarke@me.com>2012-11-05 18:09:40 +0000
committerTravis Watkins <amaranth@ubuntu.com>2012-11-17 15:00:14 -0600
commitbd0868ae1e34d4d829dc80984a3b640048ac7a5f (patch)
tree5d569ac5c26fa76134b7875c9da4e517f01fb269 /src/main/java/net/minecraft/server
parentdca54ff187fa10f37523ff744b765b66d177967e (diff)
downloadcraftbukkit-bd0868ae1e34d4d829dc80984a3b640048ac7a5f.tar
craftbukkit-bd0868ae1e34d4d829dc80984a3b640048ac7a5f.tar.gz
craftbukkit-bd0868ae1e34d4d829dc80984a3b640048ac7a5f.tar.lz
craftbukkit-bd0868ae1e34d4d829dc80984a3b640048ac7a5f.tar.xz
craftbukkit-bd0868ae1e34d4d829dc80984a3b640048ac7a5f.zip
Implement API for Skeleton and Zombie types. Fixes BUKKIT-2818
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/EntityZombie.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
index 84c1d115..a0934a25 100644
--- a/src/main/java/net/minecraft/server/EntityZombie.java
+++ b/src/main/java/net/minecraft/server/EntityZombie.java
@@ -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() {