2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
|
|
|
+++ b/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
2015-02-26 23:41:06 +01:00
|
|
|
@@ -60,7 +60,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean apply(Object object) {
|
|
|
|
- return this.a((EntityLiving) object);
|
|
|
|
+ return this.a((T) object); // CraftBukkit - fix decompile error
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
@@ -83,7 +83,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void c() {
|
|
|
|
- this.e.setGoalTarget(this.d);
|
2014-12-27 13:18:31 +01:00
|
|
|
+ this.e.setGoalTarget(this.d, d instanceof EntityPlayer ? org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER : org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_ENTITY, true); // Craftbukkit - reason
|
2014-11-25 22:32:16 +01:00
|
|
|
super.c();
|
|
|
|
}
|
2015-02-26 23:41:06 +01:00
|
|
|
|
|
|
|
@@ -102,7 +102,7 @@
|
|
|
|
return d0 < d1 ? -1 : (d0 > d1 ? 1 : 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
- public int compare(Object object, Object object1) {
|
|
|
|
+ public int compare(Entity object, Entity object1) { // CraftBukkit - fix decompile error
|
|
|
|
return this.a((Entity) object, (Entity) object1);
|
|
|
|
}
|
|
|
|
}
|