From 0d7131413aaad269ca6dec5348f02e5df0bb3827 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 23 Nov 2018 07:55:59 -0800 Subject: [PATCH] prevent double jumping --- .../baritone/pathing/movement/movements/MovementAscend.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementAscend.java b/src/main/java/baritone/pathing/movement/movements/MovementAscend.java index 9c33742e4..0baef8819 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementAscend.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementAscend.java @@ -211,6 +211,10 @@ public class MovementAscend extends Movement { return state; } + if (ctx.playerFeet().equals(src.up())) { + return state; // no need to hit space if we're already jumping + } + if (headBonkClear()) { return state.setInput(Input.JUMP, true); }