mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 09:37:35 +01:00
Can be more strict with distance
This commit is contained in:
parent
959bee3d96
commit
3ba991e1fc
@ -110,7 +110,7 @@ public class PlayerMoveControl extends MoveControl {
|
||||
double dZ = this.tz - this.entity.getZ();
|
||||
double dY = this.ty - this.entity.getY();
|
||||
double dXZ = Math.sqrt(dX * dX + dZ * dZ);
|
||||
if (Math.abs(dY) < 1.0 && dXZ <= 0.1) {
|
||||
if (Math.abs(dY) < 1.0 && dXZ < 0.09) {
|
||||
// this.entity.zza = 0.0F;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user