From a3f42e229258331458614c6888233db3316d8f6b Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 25 Sep 2018 11:32:40 -0700 Subject: [PATCH] fix pillar up in water without throwaway --- .../baritone/pathing/movement/movements/MovementPillar.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementPillar.java b/src/main/java/baritone/pathing/movement/movements/MovementPillar.java index 227a9162..be524185 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementPillar.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementPillar.java @@ -65,9 +65,6 @@ public class MovementPillar extends Movement { } } } - if (!context.hasThrowaway() && !ladder) { - return COST_INF; - } if (fromDown instanceof BlockVine) { if (!hasAgainst(x, y, z)) { return COST_INF; @@ -85,6 +82,9 @@ public class MovementPillar extends Movement { return LADDER_UP_ONE_COST; } } + if (!context.hasThrowaway() && !ladder) { + return COST_INF; + } double hardness = MovementHelper.getMiningDurationTicks(context, x, y + 2, z, toBreak, true); if (hardness >= COST_INF) { return COST_INF;