Created
April 15, 2013 08:04
-
-
Save Flow86/5386502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package buildcraft.transport; | |
import net.minecraft.tileentity.TileEntity; | |
import net.minecraftforge.common.ForgeDirection; | |
public class PipeTransportStructure extends PipeTransport { | |
@Override | |
public boolean canPipeConnect(TileEntity tile, ForgeDirection side) { | |
if (tile instanceof TileGenericPipe) { | |
Pipe pipe2 = ((TileGenericPipe) tile).pipe; | |
if (BlockGenericPipe.isValid(pipe2) && !(pipe2.transport instanceof PipeTransportStructure)) | |
return false; | |
} | |
return tile instanceof TileGenericPipe; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment