summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-03-26 14:54:31 -0500
committerWarren Loo <evilseph@gmail.com>2012-03-27 20:29:22 -0400
commit57873b8d055b90b3f29c588031ecb84a1a38210b (patch)
treed8adb9ced2c58a87bca3b4c4e0155ba59d9da8b2
parentec123deb741dc999969eb48ab2dbdf36b23a9c81 (diff)
downloadcraftbukkit-57873b8d055b90b3f29c588031ecb84a1a38210b.tar
craftbukkit-57873b8d055b90b3f29c588031ecb84a1a38210b.tar.gz
craftbukkit-57873b8d055b90b3f29c588031ecb84a1a38210b.tar.lz
craftbukkit-57873b8d055b90b3f29c588031ecb84a1a38210b.tar.xz
craftbukkit-57873b8d055b90b3f29c588031ecb84a1a38210b.zip
[Bleeding] Added SpawnReason.BREEDING. Fixes BUKKIT-1356
-rw-r--r--src/main/java/net/minecraft/server/PathfinderGoalBreed.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalBreed.java b/src/main/java/net/minecraft/server/PathfinderGoalBreed.java
index 08f89fc8..f744bea5 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) {