From 57873b8d055b90b3f29c588031ecb84a1a38210b Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 26 Mar 2012 14:54:31 -0500 Subject: [PATCH] [Bleeding] Added SpawnReason.BREEDING. Fixes BUKKIT-1356 --- src/main/java/net/minecraft/server/PathfinderGoalBreed.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/PathfinderGoalBreed.java b/src/main/java/net/minecraft/server/PathfinderGoalBreed.java index 08f89fc860..f744bea5f0 100644 --- a/src/main/java/net/minecraft/server/PathfinderGoalBreed.java +++ b/src/main/java/net/minecraft/server/PathfinderGoalBreed.java @@ -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) {