mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
Use correct spawn reason for Villagers Breeding. Fixes BUKKIT-4113
This commit is contained in:
parent
485e9ad93f
commit
5e8dd7d57d
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user