added management of blocking blocks

This commit is contained in:
SpaceToad 2014-05-15 23:26:42 +02:00
parent fc490f6d81
commit c6c414ae43

View file

@ -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();