mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Look more often even if target hasn't moved much
This commit is contained in:
parent
0db8f37eeb
commit
8c1b51da98
@ -59,7 +59,7 @@ public class PlayerControllerLook {
|
||||
public void a(double d0, double d1, double d2, float f, float f1) {
|
||||
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = d0;
|
||||
this.f = d1;
|
||||
|
@ -59,7 +59,7 @@ public class PlayerControllerLook {
|
||||
public void a(double d0, double d1, double d2, float f, float f1) {
|
||||
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = d0;
|
||||
this.f = d1;
|
||||
|
@ -59,7 +59,7 @@ public class PlayerControllerLook {
|
||||
public void a(double d0, double d1, double d2, float f, float f1) {
|
||||
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = d0;
|
||||
this.f = d1;
|
||||
|
@ -60,7 +60,7 @@ public class PlayerControllerLook {
|
||||
public void a(double d0, double d1, double d2, float f, float f1) {
|
||||
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = d0;
|
||||
this.f = d1;
|
||||
|
@ -47,7 +47,7 @@ public class PlayerControllerLook {
|
||||
public void a(double var0, double var2, double var4, float var6, float var7) {
|
||||
double d = Math.pow(this.e - var0, 2) + Math.pow(this.f - var2, 2) + Math.pow(this.g - var4, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = var0;
|
||||
this.f = var2;
|
||||
|
@ -52,7 +52,7 @@ public class PlayerControllerLook {
|
||||
public void a(double var0, double var2, double var4, float var6, float var7) {
|
||||
double d = Math.pow(this.e - var0, 2) + Math.pow(this.f - var2, 2) + Math.pow(this.g - var4, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = var0;
|
||||
this.f = var2;
|
||||
|
@ -52,7 +52,7 @@ public class PlayerControllerLook {
|
||||
public void a(double var0, double var2, double var4, float var6, float var7) {
|
||||
double d = Math.pow(this.e - var0, 2) + Math.pow(this.f - var2, 2) + Math.pow(this.g - var4, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = var0;
|
||||
this.f = var2;
|
||||
|
@ -60,7 +60,7 @@ public class PlayerControllerLook {
|
||||
public void a(double d0, double d1, double d2, float f, float f1) {
|
||||
double d = Math.pow(this.e - d0, 2) + Math.pow(this.f - d1, 2) + Math.pow(this.g - d2, 2);
|
||||
if (d < 0.01) {
|
||||
return;
|
||||
// return;
|
||||
}
|
||||
this.e = d0;
|
||||
this.f = d1;
|
||||
|
Loading…
Reference in New Issue
Block a user