@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/PathfinderGoalBreed.java
|
||||
+++ b/net/minecraft/server/PathfinderGoalBreed.java
|
||||
@@ -75,11 +75,24 @@
|
||||
@@ -82,11 +82,24 @@
|
||||
EntityAgeable entityageable = this.animal.createChild(this.partner);
|
||||
|
||||
if (entityageable != null) {
|
||||
@@ -25,20 +25,15 @@
|
||||
|
||||
if (entityplayer != null) {
|
||||
entityplayer.a(StatisticList.ANIMALS_BRED);
|
||||
@@ -92,7 +105,7 @@
|
||||
@@ -99,10 +112,14 @@
|
||||
this.partner.resetLove();
|
||||
entityageable.setAgeRaw(-24000);
|
||||
entityageable.setPositionRotation(this.animal.locX, this.animal.locY, this.animal.locZ, 0.0F, 0.0F);
|
||||
- this.b.addEntity(entityageable);
|
||||
+ this.b.addEntity(entityageable, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - added SpawnReason
|
||||
Random random = this.animal.getRandom();
|
||||
|
||||
for (int i = 0; i < 7; ++i) {
|
||||
@@ -107,7 +120,11 @@
|
||||
}
|
||||
|
||||
this.b.broadcastEntityEffect(this.animal, (byte) 18);
|
||||
if (this.b.getGameRules().getBoolean("doMobLoot")) {
|
||||
- this.b.addEntity(new EntityExperienceOrb(this.b, this.animal.locX, this.animal.locY, this.animal.locZ, random.nextInt(7) + 1));
|
||||
- this.b.addEntity(new EntityExperienceOrb(this.b, this.animal.locX, this.animal.locY, this.animal.locZ, this.animal.getRandom().nextInt(7) + 1));
|
||||
+ // CraftBukkit start - use event experience
|
||||
+ if (experience > 0) {
|
||||
+ this.b.addEntity(new EntityExperienceOrb(this.b, this.animal.locX, this.animal.locY, this.animal.locZ, experience));
|
||||
|
||||
Reference in New Issue
Block a user