From 6c09066e224ac85b8a6464eaf8f53edfeb4beda4 Mon Sep 17 00:00:00 2001 From: Nate Mortensen Date: Mon, 1 Jul 2013 06:03:00 -0500 Subject: Update CraftBukkit to 1.6.1 --- .../java/net/minecraft/server/ControllerLook.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/main/java/net/minecraft/server/ControllerLook.java') diff --git a/src/main/java/net/minecraft/server/ControllerLook.java b/src/main/java/net/minecraft/server/ControllerLook.java index bd297b38..a4b4ba7e 100644 --- a/src/main/java/net/minecraft/server/ControllerLook.java +++ b/src/main/java/net/minecraft/server/ControllerLook.java @@ -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; } } } -- cgit v1.2.3