From 5e8dd7d57d0615645782d6e1f190e1d9b83e982c Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Fri, 19 Jul 2013 16:40:41 -0400 Subject: [PATCH] Use correct spawn reason for Villagers Breeding. Fixes BUKKIT-4113 --- src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java b/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java index ffad05a576..a51ce7a6bd 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); } }