13
0
geforkt von Mirrors/Paper

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

Dieser Commit ist enthalten in:
T00thpick1 2013-07-19 16:40:41 -04:00 committet von Nate Mortensen
Ursprung 485e9ad93f
Commit 5e8dd7d57d

Datei anzeigen

@ -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);
} }
} }