mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
Update CraftBukkit to Minecraft 1.4.4.
This commit is contained in:
@@ -27,7 +27,7 @@ public abstract class PathfinderGoalTarget extends PathfinderGoal {
|
||||
}
|
||||
|
||||
public boolean b() {
|
||||
EntityLiving entityliving = this.d.aF();
|
||||
EntityLiving entityliving = this.d.aG();
|
||||
|
||||
if (entityliving == null) {
|
||||
return false;
|
||||
@@ -37,7 +37,7 @@ public abstract class PathfinderGoalTarget extends PathfinderGoal {
|
||||
return false;
|
||||
} else {
|
||||
if (this.f) {
|
||||
if (this.d.az().canSee(entityliving)) {
|
||||
if (this.d.aA().canSee(entityliving)) {
|
||||
this.g = 0;
|
||||
} else if (++this.g > 60) {
|
||||
return false;
|
||||
@@ -82,7 +82,7 @@ public abstract class PathfinderGoalTarget extends PathfinderGoal {
|
||||
|
||||
if (!this.d.e(MathHelper.floor(entityliving.locX), MathHelper.floor(entityliving.locY), MathHelper.floor(entityliving.locZ))) {
|
||||
return false;
|
||||
} else if (this.f && !this.d.az().canSee(entityliving)) {
|
||||
} else if (this.f && !this.d.aA().canSee(entityliving)) {
|
||||
return false;
|
||||
} else {
|
||||
if (this.a) {
|
||||
@@ -136,7 +136,7 @@ public abstract class PathfinderGoalTarget extends PathfinderGoal {
|
||||
}
|
||||
|
||||
private boolean a(EntityLiving entityliving) {
|
||||
this.c = 10 + this.d.aA().nextInt(5);
|
||||
this.c = 10 + this.d.aB().nextInt(5);
|
||||
PathEntity pathentity = this.d.getNavigation().a(entityliving);
|
||||
|
||||
if (pathentity == null) {
|
||||
|
Reference in New Issue
Block a user