fix cached path loop

This commit is contained in:
Leijurv 2018-11-20 08:00:11 -08:00
parent d95a72f2cc
commit e5184efdaa
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -124,7 +124,7 @@ public final class ChunkPacker {
private static PathingBlockType getPathingBlockType(IBlockState state) {
Block block = state.getBlock();
if (block.equals(Blocks.WATER)) {
if (block.equals(Blocks.WATER) && !MovementHelper.isFlowing(state)) {
// only water source blocks are plausibly usable, flowing water should be avoid
return PathingBlockType.WATER;
}