3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

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