geforkt von Mirrors/Paper
Properly set persistence flag for bred animals. Fixes BUKKIT-4751
Dieser Commit ist enthalten in:
Ursprung
c62375f95e
Commit
8ae8957d15
@ -69,6 +69,11 @@ public class PathfinderGoalBreed extends PathfinderGoal {
|
|||||||
EntityAgeable entityageable = this.d.createChild(this.e);
|
EntityAgeable entityageable = this.d.createChild(this.e);
|
||||||
|
|
||||||
if (entityageable != null) {
|
if (entityageable != null) {
|
||||||
|
// CraftBukkit start - set persistence for tame animals
|
||||||
|
if (entityageable instanceof EntityTameableAnimal && ((EntityTameableAnimal) entityageable).isTamed()) {
|
||||||
|
entityageable.persistent = true;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
this.d.setAge(6000);
|
this.d.setAge(6000);
|
||||||
this.e.setAge(6000);
|
this.e.setAge(6000);
|
||||||
this.d.bZ();
|
this.d.bZ();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren