From 0a8fb574b53192445b67a616d309d8100a158a90 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 5 Aug 2018 22:09:29 -0400 Subject: [PATCH] don't jump on air anymore --- .../java/baritone/bot/pathing/movement/MovementHelper.java | 3 +++ .../bot/pathing/movement/movements/MovementAscend.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/baritone/bot/pathing/movement/MovementHelper.java b/src/main/java/baritone/bot/pathing/movement/MovementHelper.java index ef677007..c9475226 100644 --- a/src/main/java/baritone/bot/pathing/movement/MovementHelper.java +++ b/src/main/java/baritone/bot/pathing/movement/MovementHelper.java @@ -121,6 +121,9 @@ public interface MovementHelper extends ActionCosts, Helper { if (block instanceof BlockLadder || block instanceof BlockVine) { return true; } + if (block instanceof BlockAir) { + return false; + } if (isWater(block)) { return isWater(pos.up()); // You can only walk on water if there is water above it } 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 7c75cea0..58a4e265 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementAscend.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementAscend.java @@ -49,6 +49,9 @@ public class MovementAscend extends Movement { if (!MovementHelper.isAir(positionsToPlace[0]) && !MovementHelper.isWater(positionsToPlace[0])) { return COST_INF; } + if (true) { + return COST_INF; + } for (BlockPos against1 : against) { if (BlockStateInterface.get(against1).isBlockNormalCube()) { return JUMP_ONE_BLOCK_COST + WALK_ONE_BLOCK_COST + PLACE_ONE_BLOCK_COST + getTotalHardnessOfBlocksToBreak(ts);