From c6c414ae4302e298f397f81de542fb444cdcd1be Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Thu, 15 May 2014 23:26:42 +0200 Subject: [PATCH] added management of blocking blocks --- common/buildcraft/core/utils/PathFinding.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/buildcraft/core/utils/PathFinding.java b/common/buildcraft/core/utils/PathFinding.java index 4a751ae8..e81174bf 100755 --- a/common/buildcraft/core/utils/PathFinding.java +++ b/common/buildcraft/core/utils/PathFinding.java @@ -14,6 +14,7 @@ import java.util.HashMap; import net.minecraft.world.IBlockAccess; +import buildcraft.api.core.BuildCraftAPI; import buildcraft.core.BlockIndex; /** @@ -90,6 +91,10 @@ public class PathFinding { continue; } + if (!BuildCraftAPI.isSoftBlock(world, x, y, z)) { + continue; + } + BlockIndex index = new BlockIndex(x, y, z); Node nextNode = new Node();