diff options
author | T00thpick1 <t00thpick1dirko@gmail.com> | 2013-07-19 16:40:41 -0400 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2013-08-06 13:03:14 -0600 |
commit | 5e8dd7d57d0615645782d6e1f190e1d9b83e982c (patch) | |
tree | 7cbdfcde82c56ab9b92cd3a66e19de17feb5512c | |
parent | 485e9ad93f314837270a297270a19b3b9ccd02e4 (diff) | |
download | craftbukkit-5e8dd7d57d0615645782d6e1f190e1d9b83e982c.tar craftbukkit-5e8dd7d57d0615645782d6e1f190e1d9b83e982c.tar.gz craftbukkit-5e8dd7d57d0615645782d6e1f190e1d9b83e982c.tar.lz craftbukkit-5e8dd7d57d0615645782d6e1f190e1d9b83e982c.tar.xz craftbukkit-5e8dd7d57d0615645782d6e1f190e1d9b83e982c.zip |
Use correct spawn reason for Villagers Breeding. Fixes BUKKIT-4113
-rw-r--r-- | src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java b/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java index ffad05a5..a51ce7a6 100644 --- a/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java +++ b/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java @@ -84,7 +84,7 @@ public class PathfinderGoalMakeLove extends PathfinderGoal { this.b.setAge(6000); entityvillager.setAge(-24000); entityvillager.setPositionRotation(this.b.locX, this.b.locY, this.b.locZ, 0.0F, 0.0F); - this.d.addEntity(entityvillager); + this.d.addEntity(entityvillager, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - added SpawnReason this.d.broadcastEntityEffect(entityvillager, (byte) 12); } } |