solidarity
This commit is contained in:
parent
7d94cb259f
commit
29391af5ad
@ -191,13 +191,8 @@ public class MovementParkour extends Movement {
|
|||||||
@Override
|
@Override
|
||||||
public MovementState updateState(MovementState state) {
|
public MovementState updateState(MovementState state) {
|
||||||
super.updateState(state);
|
super.updateState(state);
|
||||||
switch (state.getStatus()) {
|
if (state.getStatus() != MovementState.MovementStatus.RUNNING) {
|
||||||
case WAITING:
|
return state;
|
||||||
state.setStatus(MovementState.MovementStatus.RUNNING);
|
|
||||||
case RUNNING:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return state;
|
|
||||||
}
|
}
|
||||||
if (dist >= 4) {
|
if (dist >= 4) {
|
||||||
state.setInput(InputOverrideHandler.Input.SPRINT, true);
|
state.setInput(InputOverrideHandler.Input.SPRINT, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user