From 84d9a9bf3507f6e490624403e0c6323899eb1e48 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Sat, 4 Aug 2018 18:21:09 -0400 Subject: [PATCH] Update reference to proper state variable --- .../baritone/bot/pathing/movement/movements/MovementAscend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/movement/movements/MovementAscend.java b/src/main/java/baritone/bot/pathing/movement/movements/MovementAscend.java index 2c6f36ff..0bacf84f 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementAscend.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementAscend.java @@ -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: