Update CraftBukkit to 1.6.1

This commit is contained in:
Nate Mortensen authored and Wesley Wolfe committed 2013-07-01 12:10:06 -05:00
1 parent f887b76a25
commit 6c09066e22
228 files changed
+6426 -5442

No files matched your search

@@ -4,16 +4,16 @@ import org.bukkit.craftbukkit.TrigMath; // CraftBukkit
public class ControllerLook {
private EntityLiving a;
private EntityInsentient a;
private float b;
private float c;
private boolean d = false;
private boolean d;
private double e;
private double f;
private double g;
public ControllerLook(EntityLiving entityliving) {
this.a = entityliving;
public ControllerLook(EntityInsentient entityinsentient) {
this.a = entityinsentient;
}
public void a(Entity entity, float f, float f1) {
@@ -53,20 +53,20 @@ public class ControllerLook {
// CraftBukkit end
this.a.pitch = this.a(this.a.pitch, f1, this.c);
this.a.aA = this.a(this.a.aA, f, this.b);
this.a.aP = this.a(this.a.aP, f, this.b);
} else {
this.a.aA = this.a(this.a.aA, this.a.ax, 10.0F);
this.a.aP = this.a(this.a.aP, this.a.aN, 10.0F);
}
float f2 = MathHelper.g(this.a.aA - this.a.ay);
float f2 = MathHelper.g(this.a.aP - this.a.aN);
if (!this.a.getNavigation().f()) {
if (!this.a.getNavigation().g()) {
if (f2 < -75.0F) {
this.a.aA = this.a.ay - 75.0F;
this.a.aP = this.a.aN - 75.0F;
}
if (f2 > 75.0F) {
this.a.aA = this.a.ay + 75.0F;
this.a.aP = this.a.aN + 75.0F;
}
}
}