Ocelots -> Ocelittle. Addresses BUKKIT-4449

This commit is contained in:
EvilSeph committed 2013-07-09 21:04:45 -04:00
1 parent f6a0b1e426
commit 9109bd7652
1 file changed
+6 -3
@@ -377,9 +377,8 @@ public abstract class EntityInsentient extends EntityLiving {
}
protected void bo() {
if (this.persistent) {
this.aV = 0;
} else {
// CraftBukkit - temporary hack to handle Ocelot despawning
if ((this instanceof EntityOcelot && this.isTypeNotPersistent()) || (!this.persistent)) {
EntityHuman entityhuman = this.world.findNearbyPlayer(this, -1.0D);
if (entityhuman != null) {
@@ -398,7 +397,11 @@ public abstract class EntityInsentient extends EntityLiving {
this.aV = 0;
}
}
// CraftBukkit start
} else {
this.aV = 0;
}
// CraftBukkit end
}
protected void bh() {