don't sprint if hunger is too low
This commit is contained in:
parent
438392840b
commit
424113f052
@ -19,10 +19,7 @@ package baritone.pathing.path;
|
|||||||
|
|
||||||
import baritone.Baritone;
|
import baritone.Baritone;
|
||||||
import baritone.api.event.events.TickEvent;
|
import baritone.api.event.events.TickEvent;
|
||||||
import baritone.pathing.movement.ActionCosts;
|
import baritone.pathing.movement.*;
|
||||||
import baritone.pathing.movement.Movement;
|
|
||||||
import baritone.pathing.movement.MovementHelper;
|
|
||||||
import baritone.pathing.movement.MovementState;
|
|
||||||
import baritone.pathing.movement.movements.MovementDescend;
|
import baritone.pathing.movement.movements.MovementDescend;
|
||||||
import baritone.pathing.movement.movements.MovementDiagonal;
|
import baritone.pathing.movement.movements.MovementDiagonal;
|
||||||
import baritone.pathing.movement.movements.MovementFall;
|
import baritone.pathing.movement.movements.MovementFall;
|
||||||
@ -274,7 +271,7 @@ public class PathExecutor implements Helper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void sprintIfRequested() {
|
private void sprintIfRequested() {
|
||||||
if (!Baritone.settings().allowSprint.get()) {
|
if (!new CalculationContext().canSprint()) {
|
||||||
player().setSprinting(false);
|
player().setSprinting(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user