Merge pull request #375 from tcooc/patch-5

Fix iron pipe redstone behaviour.
This commit is contained in:
CovertJaguar 2012-10-27 22:55:50 -07:00
commit 28b40f1ed0

View file

@ -13,6 +13,7 @@ import buildcraft.api.core.Orientations;
import buildcraft.api.liquids.ITankContainer;
import buildcraft.api.tools.IToolWrench;
import buildcraft.api.transport.IPipeEntry;
import buildcraft.transport.Pipe;
import buildcraft.transport.TileGenericPipe;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.IInventory;
@ -46,9 +47,11 @@ public class PipeLogicIron extends PipeLogic {
TileEntity tile = container.getTile(Orientations.values()[nextMetadata]);
if (tile instanceof TileGenericPipe)
if (((TileGenericPipe) tile).pipe.logic instanceof PipeLogicWood)
if (tile instanceof TileGenericPipe) {
Pipe pipe = ((TileGenericPipe) tile).pipe;
if (pipe.logic instanceof PipeLogicWood || pipe instanceof PipeStructureCobblestone)
continue;
}
if (tile instanceof IPipeEntry || tile instanceof IInventory || tile instanceof ITankContainer
|| tile instanceof TileGenericPipe) {