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;
|
||||
case WAITING:
|
||||
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))
|
||||
latestState.setStatus(MovementStatus.SUCCESS);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user