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.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/nms-patches/PathfinderGoalNearestAttackableTarget.patch b/nms-patches/PathfinderGoalNearestAttackableTarget.patch
index 09c3172e..d1ceb69a 100644
--- a/nms-patches/PathfinderGoalNearestAttackableTarget.patch
+++ b/nms-patches/PathfinderGoalNearestAttackableTarget.patch
@@ -3,7 +3,7 @@
@@ -35,7 +35,7 @@
}
- public boolean apply(Object object) {
+ public boolean apply(@Nullable Object object) {
- return this.a((EntityLiving) object);
+ return this.a((T) object); // CraftBukkit - fix decompile error
}
@@ -23,12 +23,12 @@
@Nullable
public Double a(@Nullable EntityHuman entityhuman) {
ItemStack itemstack = entityhuman.getEquipment(EnumItemSlot.HEAD);
-@@ -73,10 +73,10 @@
- return Double.valueOf(1.0D);
+@@ -74,10 +74,10 @@
}
-- public Object apply(Object object) {
-+ public Double apply(EntityHuman object) { // CraftBukkit - fix decompile error
+ @Nullable
+- public Object apply(@Nullable Object object) {
++ public Double apply(@Nullable EntityHuman object) { // CraftBukkit - fix decompile error
return this.a((EntityHuman) object);
}
- }, this.c);
@@ -36,7 +36,7 @@
return this.d != null;
}
}
-@@ -86,7 +86,7 @@
+@@ -87,7 +87,7 @@
}
public void c() {
@@ -45,7 +45,7 @@
super.c();
}
-@@ -105,7 +105,7 @@
+@@ -106,7 +106,7 @@
return d0 < d1 ? -1 : (d0 > d1 ? 1 : 0);
}