@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
||||
+++ b/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
||||
@@ -34,7 +34,7 @@
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
public boolean apply(Object object) {
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -49,11 +49,11 @@
|
||||
@@ -50,11 +50,11 @@
|
||||
return false;
|
||||
} else {
|
||||
Collections.sort(list, this.b);
|
||||
@@ -20,10 +20,10 @@
|
||||
} else {
|
||||
- this.d = this.e.world.a(this.e.locX, this.e.locY + (double) this.e.getHeadHeight(), this.e.locZ, this.f(), this.f(), new Function() {
|
||||
+ this.d = (T) this.e.world.a(this.e.locX, this.e.locY + (double) this.e.getHeadHeight(), this.e.locZ, this.f(), this.f(), new Function<EntityHuman, Double>() { // CraftBukkit - fix decompile error
|
||||
public Double a(EntityHuman entityhuman) {
|
||||
@Nullable
|
||||
public Double a(@Nullable EntityHuman entityhuman) {
|
||||
ItemStack itemstack = entityhuman.getEquipment(EnumItemSlot.HEAD);
|
||||
|
||||
@@ -71,10 +71,10 @@
|
||||
@@ -73,10 +73,10 @@
|
||||
return Double.valueOf(1.0D);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
return this.d != null;
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@
|
||||
@@ -86,7 +86,7 @@
|
||||
}
|
||||
|
||||
public void c() {
|
||||
@@ -45,7 +45,7 @@
|
||||
super.c();
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
@@ -105,7 +105,7 @@
|
||||
return d0 < d1 ? -1 : (d0 > d1 ? 1 : 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user