mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
[Bleeding] Added SpawnReason.BREEDING. Fixes BUKKIT-1356
This commit is contained in:
parent
ec123deb74
commit
57873b8d05
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ public class PathfinderGoalBreed extends PathfinderGoal {
|
|||
this.e.s_();
|
||||
entityanimal.setAge(-24000);
|
||||
entityanimal.setPositionRotation(this.d.locX, this.d.locY, this.d.locZ, 0.0F, 0.0F);
|
||||
this.a.addEntity(entityanimal);
|
||||
this.a.addEntity(entityanimal, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - Added SpawnReason
|
||||
Random random = this.d.an();
|
||||
|
||||
for (int i = 0; i < 7; ++i) {
|
||||
|
|
Loading…
Reference in a new issue