Merge pull request #335 from Xhamolk/patch-3

Machines should no longer send items to Sandstone pipes
This commit is contained in:
CovertJaguar 2012-10-11 14:08:51 -07:00
commit 2cd7857d07

View file

@ -148,8 +148,12 @@ public class Utils {
TileEntity pipeEntry = w.getBlockTileEntity((int) pos.x, (int) pos.y, (int) pos.z);
if (pipeEntry instanceof IPipeEntry && ((IPipeEntry) pipeEntry).acceptItems())
if (pipeEntry instanceof IPipeEntry && ((IPipeEntry) pipeEntry).acceptItems()) {
if( pipeEntry instanceof IPipeConnection )
if( !((IPipeConnection) pipeEntry).isPipeConnected(from.reverse()) )
continue;
possiblePipes.add(Orientations.values()[j]);
}
}
if (possiblePipes.size() > 0) {