summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityIronGolem.patch
blob: 6fe4f58e55ba800dc7953bd452a303a84ddc4aab (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/EntityIronGolem.java
+++ b/net/minecraft/server/EntityIronGolem.java
@@ -71,7 +71,7 @@
 
     protected void C(Entity entity) {
         if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.getRandom().nextInt(20) == 0) {
-            this.setGoalTarget((EntityLiving) entity);
+            this.setGoalTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
         }
 
         super.C(entity);