diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityInsentient.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java index 34eb8725..12d47daf 100644 --- a/src/main/java/net/minecraft/server/EntityInsentient.java +++ b/src/main/java/net/minecraft/server/EntityInsentient.java @@ -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() { |