fix sprint while paused bug, fixes #1331
This commit is contained in:
parent
448dd979a2
commit
9fb46946b5
@ -145,7 +145,7 @@ public class MixinMinecraft {
|
|||||||
)
|
)
|
||||||
private boolean isAllowUserInput(GuiScreen screen) {
|
private boolean isAllowUserInput(GuiScreen screen) {
|
||||||
// allow user input is only the primary baritone
|
// allow user input is only the primary baritone
|
||||||
return (BaritoneAPI.getProvider().getPrimaryBaritone().getPathingBehavior().getCurrent() != null && player != null) || screen.allowUserInput;
|
return (BaritoneAPI.getProvider().getPrimaryBaritone().getPathingBehavior().isPathing() && player != null) || screen.allowUserInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(
|
@Inject(
|
||||||
|
@ -103,7 +103,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlayerSprintState(SprintStateEvent event) {
|
public void onPlayerSprintState(SprintStateEvent event) {
|
||||||
if (current != null) {
|
if (isPathing()) {
|
||||||
event.setState(current.isSprinting());
|
event.setState(current.isSprinting());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user