Fix iron pipe redstone behaviour.
This commit is contained in:
parent
aa3fdfd5dc
commit
0256e24215
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue