Update reference to proper state variable
This commit is contained in:
parent
1bc2e6fe7a
commit
84d9a9bf35
@ -33,7 +33,7 @@ public class MovementAscend extends Movement {
|
|||||||
return state;
|
return state;
|
||||||
case WAITING:
|
case WAITING:
|
||||||
case RUNNING:
|
case RUNNING:
|
||||||
MovementState latestState = currentState.setInput(InputOverrideHandler.Input.JUMP, true).setInput(InputOverrideHandler.Input.MOVE_FORWARD, true);
|
MovementState latestState = state.setInput(InputOverrideHandler.Input.JUMP, true).setInput(InputOverrideHandler.Input.MOVE_FORWARD, true);
|
||||||
if (playerFeet().equals(dest))
|
if (playerFeet().equals(dest))
|
||||||
latestState.setStatus(MovementStatus.SUCCESS);
|
latestState.setStatus(MovementStatus.SUCCESS);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user