add blocks to avoid breaking, fixes #368

This commit is contained in:
Leijurv
2019-04-22 19:52:04 -07:00
parent e8b4f4d2b6
commit 83265fcb54
2 changed files with 9 additions and 1 deletions

View File

@@ -55,7 +55,8 @@ public interface MovementHelper extends ActionCosts, Helper {
|| bsi.get0(x + 1, y, z).getBlock() instanceof BlockLiquid
|| bsi.get0(x - 1, y, z).getBlock() instanceof BlockLiquid
|| bsi.get0(x, y, z + 1).getBlock() instanceof BlockLiquid
|| bsi.get0(x, y, z - 1).getBlock() instanceof BlockLiquid;
|| bsi.get0(x, y, z - 1).getBlock() instanceof BlockLiquid
|| Baritone.settings().blocksToAvoidBreaking.value.contains(b);
}
static boolean canWalkThrough(IPlayerContext ctx, BetterBlockPos pos) {