summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalNearestAttackableTarget.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/PathfinderGoalNearestAttackableTarget.patch')
-rw-r--r--nms-patches/PathfinderGoalNearestAttackableTarget.patch26
1 files changed, 22 insertions, 4 deletions
diff --git a/nms-patches/PathfinderGoalNearestAttackableTarget.patch b/nms-patches/PathfinderGoalNearestAttackableTarget.patch
index a1f6896b..5021dace 100644
--- a/nms-patches/PathfinderGoalNearestAttackableTarget.patch
+++ b/nms-patches/PathfinderGoalNearestAttackableTarget.patch
@@ -1,6 +1,15 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/PathfinderGoalNearestAttackableTarget.java 2014-12-27 12:18:17.361358975 +0000
-+++ src/main/java/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java 2014-12-27 12:18:17.369358975 +0000
-@@ -48,7 +48,7 @@
+--- /home/matt/mc-dev-private//net/minecraft/server/PathfinderGoalNearestAttackableTarget.java 2015-02-26 22:40:22.955608135 +0000
++++ src/main/java/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java 2015-02-26 22:40:22.955608135 +0000
+@@ -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 @@
}
public void c() {
@@ -8,4 +17,13 @@
+ 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
super.c();
}
- }
+
+@@ -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);
+ }
+ }