Fix.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user