From bf05de1de7970eacce5b796bd36239d9a0d7fb9e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 28 Aug 2018 12:23:54 -0700 Subject: [PATCH] can't use flowing water, so pack it as such --- src/main/java/baritone/chunk/ChunkPacker.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/baritone/chunk/ChunkPacker.java b/src/main/java/baritone/chunk/ChunkPacker.java index e205d7f8..6bac5529 100644 --- a/src/main/java/baritone/chunk/ChunkPacker.java +++ b/src/main/java/baritone/chunk/ChunkPacker.java @@ -18,7 +18,6 @@ package baritone.chunk; import baritone.pathing.movement.MovementHelper; -import baritone.utils.BlockStateInterface; import baritone.utils.Helper; import baritone.utils.pathing.PathingBlockType; import net.minecraft.block.Block; @@ -105,11 +104,12 @@ public final class ChunkPacker implements Helper { } private static PathingBlockType getPathingBlockType(Block block) { - if (BlockStateInterface.isWater(block)) { + if (block.equals(Blocks.WATER)) { + // only water source blocks are plausibly usable, flowing water should be avoid return PathingBlockType.WATER; } - if (MovementHelper.avoidWalkingInto(block)) { + if (MovementHelper.avoidWalkingInto(block) || block.equals(Blocks.FLOWING_WATER)) { return PathingBlockType.AVOID; } // We used to do an AABB check here