mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Ocelots -> Ocelittle. Addresses BUKKIT-4449
This commit is contained in:
parent
f6a0b1e426
commit
9109bd7652
@ -377,9 +377,8 @@ public abstract class EntityInsentient extends EntityLiving {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void bo() {
|
protected void bo() {
|
||||||
if (this.persistent) {
|
// CraftBukkit - temporary hack to handle Ocelot despawning
|
||||||
this.aV = 0;
|
if ((this instanceof EntityOcelot && this.isTypeNotPersistent()) || (!this.persistent)) {
|
||||||
} else {
|
|
||||||
EntityHuman entityhuman = this.world.findNearbyPlayer(this, -1.0D);
|
EntityHuman entityhuman = this.world.findNearbyPlayer(this, -1.0D);
|
||||||
|
|
||||||
if (entityhuman != null) {
|
if (entityhuman != null) {
|
||||||
@ -398,7 +397,11 @@ public abstract class EntityInsentient extends EntityLiving {
|
|||||||
this.aV = 0;
|
this.aV = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// CraftBukkit start
|
||||||
|
} else {
|
||||||
|
this.aV = 0;
|
||||||
}
|
}
|
||||||
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void bh() {
|
protected void bh() {
|
||||||
|
Loading…
Reference in New Issue
Block a user