Adjust order.

This commit is contained in:
Murat65536
2025-08-30 08:21:58 -04:00
parent ce81d36479
commit 037912871c

View File

@@ -686,7 +686,6 @@ public interface MovementHelper extends ActionCosts, Helper {
VecUtils.getBlockPosCenter(dest),
ctx.playerRotations()
).getYaw();
moveTowardsWithoutRotation(ctx, state, idealYaw);
float distance = Rotation.yawDistanceFromOffset(ctx.playerRotations().getYaw(), idealYaw) % 45f;
float newYaw = distance > 0f ?
distance > 22.5f ? distance - 45f : distance :
@@ -695,6 +694,7 @@ public interface MovementHelper extends ActionCosts, Helper {
ctx.playerRotations().getYaw() - newYaw,
ctx.playerRotations().getPitch()
), true));
moveTowardsWithoutRotation(ctx, state, idealYaw);
}
/**