Skip to content

Commit 8ee7a1e

Browse files
committed
Small change.
1 parent 5d8136b commit 8ee7a1e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/baritone/pathing/movement/MovementHelper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,7 @@ static void moveTowards(IPlayerContext ctx, MovementState state, BlockPos pos) {
661661
)).setInput(Input.MOVE_FORWARD, true);
662662
}
663663

664-
static void moveTowardsWithRotation(IPlayerContext ctx, MovementState state, BlockPos dest, Rotation rotation) {
665-
state.setTarget(new MovementTarget(rotation, true));
664+
static void moveTowardsWithoutRotation(IPlayerContext ctx, MovementState state, BlockPos dest) {
666665
float ax = Mth.sin(ctx.playerRotations().getYaw() * DEG_TO_RAD_F);
667666
float az = Mth.cos(ctx.playerRotations().getYaw() * DEG_TO_RAD_F);
668667
Rotation blockRotation = RotationUtils.calcRotationFromVec3d(ctx.playerHead(),

src/main/java/baritone/pathing/movement/movements/MovementTraverse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public MovementState updateState(MovementState state) {
352352
}
353353
return state;
354354
}
355-
MovementHelper.moveTowardsWithRotation(ctx, state, dest, ctx.playerRotations());
355+
MovementHelper.moveTowardsWithoutRotation(ctx, state, dest);
356356
return state;
357357
// 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
358358
}

0 commit comments

Comments
 (0)