added management of blocking blocks
This commit is contained in:
parent
fc490f6d81
commit
c6c414ae43
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue