Use correct spawn reason for Villagers Breeding. Fixes BUKKIT-4113

This commit is contained in:
T00thpick1 2013-07-19 16:40:41 -04:00 committed by Nate Mortensen
parent 485e9ad93f
commit 5e8dd7d57d

View File

@ -84,7 +84,7 @@ public class PathfinderGoalMakeLove extends PathfinderGoal {
this.b.setAge(6000); this.b.setAge(6000);
entityvillager.setAge(-24000); entityvillager.setAge(-24000);
entityvillager.setPositionRotation(this.b.locX, this.b.locY, this.b.locZ, 0.0F, 0.0F); 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); this.d.broadcastEntityEffect(entityvillager, (byte) 12);
} }
} }