This commit is contained in:
Murat65536
2025-07-02 16:08:14 -04:00
parent 72fb0a0d28
commit 83afa1126e
2 changed files with 2 additions and 2 deletions

View File

@@ -660,7 +660,7 @@ public interface MovementHelper extends ActionCosts, Helper {
}
static void moveTowardsWithRotation(IPlayerContext ctx, MovementState state, BlockPos dest, Rotation rotation) {
state.setTarget(new MovementTarget(rotation, false));
state.setTarget(new MovementTarget(rotation, true));
/*
Options:
W: ax, az

View File

@@ -355,7 +355,7 @@ public class MovementTraverse extends Movement {
MovementHelper.moveTowardsWithRotation(ctx, state, dest,
RotationUtils.calcRotationFromVec3d(ctx.playerHead(),
VecUtils.getBlockPosCenter(dest),
ctx.playerRotations()).add(new Rotation(225, 0).withPitch(ctx.playerRotations().getPitch())));
ctx.playerRotations()).add(new Rotation(45, 0).withPitch(ctx.playerRotations().getPitch())));
return state;
// TODO MovementManager.moveTowardsBlock(to); // move towards not look at because if we are bridging for a couple blocks in a row, it is faster if we dont spin around and walk forwards then spin around and place backwards for every block
}