Fix improper indice check on blocks to break

This commit is contained in:
Howard Stark 2018-08-05 21:59:51 -04:00
parent a35a6409ab
commit 23174c3c42
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3

View File

@ -78,7 +78,7 @@ public class MovementAscend extends Movement {
return state;
}
state.setTarget(new MovementState.MovementTarget(Optional.empty(), Optional.of(Utils.calcRotationFromCoords(playerFeet(), positionsToBreak[0]))));
state.setTarget(new MovementState.MovementTarget(Optional.empty(), Optional.of(Utils.calcRotationFromCoords(playerFeet(), positionsToBreak[1]))));
state.setInput(InputOverrideHandler.Input.JUMP, true).setInput(InputOverrideHandler.Input.MOVE_FORWARD, true);
return state;
default: