summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ControllerLook.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/ControllerLook.java')
-rw-r--r--src/main/java/net/minecraft/server/ControllerLook.java20
1 files changed, 10 insertions, 10 deletions
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;
}
}
}