Update reference to proper state variable

This commit is contained in:
Howard Stark 2018-08-04 18:21:09 -04:00
parent 1bc2e6fe7a
commit 84d9a9bf35
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3

View File

@ -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: