Paper/nms-patches/EntityIronGolem.patch
2014-11-28 16:54:14 -06:00

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