From 174f84da73e52d2a09069de4315f7131c8c663e6 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Wed, 8 Aug 2018 12:33:44 -0700 Subject: [PATCH] Prevent damaging falls in the Nether --- .../baritone/bot/pathing/movement/movements/MovementFall.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java index 8ef82816..31552d3b 100644 --- a/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java +++ b/src/main/java/baritone/bot/pathing/movement/movements/MovementFall.java @@ -67,7 +67,7 @@ public class MovementFall extends Movement { case RUNNING: BlockPos playerFeet = playerFeet(); if (!BlockStateInterface.isWater(dest) && src.getY() - dest.getY() > 3) { - if (!player().inventory.hasItemStack(new ItemStack(new ItemBucket(Blocks.WATER)))) { + if (!player().inventory.hasItemStack(new ItemStack(new ItemBucket(Blocks.WATER))) || world().provider.isNether()) { state.setStatus(MovementStatus.UNREACHABLE); return state; }