From c25ddf063a808e3adb749e22017661f403c5fb7e Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Nov 2016 12:41:03 +1100 Subject: Update to Minecraft 1.11 --- nms-patches/PathfinderGoalNearestAttackableTarget.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'nms-patches/PathfinderGoalNearestAttackableTarget.patch') 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); } -- cgit v1.2.3