summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityIronGolem.patch
blob: 14d0ca40342420adc31315d405b7225f6b04ecb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- /home/matt/mc-dev-private//net/minecraft/server/EntityIronGolem.java	2015-02-26 22:40:22.579608139 +0000
+++ src/main/java/net/minecraft/server/EntityIronGolem.java	2015-02-26 22:40:22.583608139 +0000
@@ -59,7 +59,7 @@
 
     protected void s(Entity entity) {
         if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.bc().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);
@@ -220,7 +220,7 @@
                 }
 
                 public boolean apply(Object object) {
-                    return this.a((EntityLiving) object);
+                    return this.a((T) object); // CraftBukkit - fix decompiler error
                 }
             };
         }