3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

[Bleeding] Added SpawnReason.BREEDING. Fixes BUKKIT-1356

Dieser Commit ist enthalten in:
feildmaster 2012-03-26 14:54:31 -05:00 committet von Warren Loo
Ursprung ec123deb74
Commit 57873b8d05

Datei anzeigen

@ -76,7 +76,7 @@ public class PathfinderGoalBreed extends PathfinderGoal {
this.e.s_(); this.e.s_();
entityanimal.setAge(-24000); entityanimal.setAge(-24000);
entityanimal.setPositionRotation(this.d.locX, this.d.locY, this.d.locZ, 0.0F, 0.0F); 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(); Random random = this.d.an();
for (int i = 0; i < 7; ++i) { for (int i = 0; i < 7; ++i) {