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:
Ursprung
485e9ad93f
Commit
5e8dd7d57d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren