Can be more strict with distance

This commit is contained in:
fullwall 2022-03-10 21:21:53 +08:00
parent 959bee3d96
commit 3ba991e1fc

View File

@ -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;
}