Prevent Iron Pipes from switching to a plugged side

This commit is contained in:
taelnia 2013-11-15 22:32:30 -05:00
parent e825066fd0
commit 91e5648903

View file

@ -55,6 +55,8 @@ public abstract class PipeLogicIron {
return true;
TileEntity tile = tileBuffer[side.ordinal()].getTile();
if ((pipe.container.hasPlug(side)) || (tile != null && tile instanceof TileGenericPipe && ((TileGenericPipe)tile).pipe.container.hasPlug(side.getOpposite())))
return false;
return isValidConnectingTile(tile);
}