mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 20:30:28 +01:00
10 lines
395 B
Diff
10 lines
395 B
Diff
@@ -57,7 +57,7 @@
|
|
|
|
protected void s(Entity entity) {
|
|
if (entity instanceof IMonster && this.bb().nextInt(20) == 0) {
|
|
- this.setGoalTarget((EntityLiving) entity);
|
|
+ this.setGoalTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
|
}
|
|
|
|
super.s(entity);
|