Revert to 1.5 despawning behaviour for Ocelots and Wolves. Fixes BUKKIT-4449

This commit is contained in:
EvilSeph committed 2013-08-02 19:21:35 -04:00
1 parent a466e0aa6c
commit 720a8d706a
3 files changed
+5 -8

No files matched your search

@@ -377,8 +377,9 @@ public abstract class EntityInsentient extends EntityLiving {
}
protected void bo() {
// CraftBukkit - temporary hack to handle Ocelot despawning
if ((this instanceof EntityOcelot && this.isTypeNotPersistent()) || (!this.persistent)) {
if (this.persistent) {
this.aV = 0;
} else {
EntityHuman entityhuman = this.world.findNearbyPlayer(this, -1.0D);
if (entityhuman != null) {
@@ -397,11 +398,7 @@ public abstract class EntityInsentient extends EntityLiving {
this.aV = 0;
}
}
// CraftBukkit start
} else {
this.aV = 0;
}
// CraftBukkit end
}
protected void bh() {