Merge pull request #335 from Xhamolk/patch-3
Machines should no longer send items to Sandstone pipes
This commit is contained in:
commit
2cd7857d07
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue