parent
93290e0ad9
commit
3c84c34bd9
2 changed files with 6 additions and 2 deletions
|
@ -13,8 +13,8 @@ import buildcraft.api.power.IPowerReceptor;
|
|||
import buildcraft.api.power.PowerHandler;
|
||||
import buildcraft.api.power.PowerHandler.PowerReceiver;
|
||||
import buildcraft.api.power.PowerHandler.Type;
|
||||
import buildcraft.api.transport.IPipeTile;
|
||||
import buildcraft.api.transport.PipeManager;
|
||||
import buildcraft.core.TileBuffer;
|
||||
import buildcraft.core.network.TileNetworkData;
|
||||
import buildcraft.transport.Pipe;
|
||||
import buildcraft.transport.PipeIconProvider;
|
||||
|
@ -41,6 +41,8 @@ public class PipeFluidsWood extends Pipe<PipeTransportFluids> implements IPowerR
|
|||
private PipeLogicWood logic = new PipeLogicWood(this) {
|
||||
@Override
|
||||
protected boolean isValidConnectingTile(TileEntity tile) {
|
||||
if(tile instanceof IPipeTile)
|
||||
return false;
|
||||
if (!(tile instanceof IFluidHandler))
|
||||
return false;
|
||||
if (!PipeManager.canExtractFluids(pipe, tile.worldObj, tile.xCoord, tile.yCoord, tile.zCoord))
|
||||
|
|
|
@ -15,8 +15,8 @@ import buildcraft.api.power.IPowerReceptor;
|
|||
import buildcraft.api.power.PowerHandler;
|
||||
import buildcraft.api.power.PowerHandler.PowerReceiver;
|
||||
import buildcraft.api.power.PowerHandler.Type;
|
||||
import buildcraft.api.transport.IPipeTile;
|
||||
import buildcraft.api.transport.PipeManager;
|
||||
import buildcraft.core.TileBuffer;
|
||||
import buildcraft.transport.TravelingItem;
|
||||
import buildcraft.core.inventory.InventoryWrapper;
|
||||
import buildcraft.core.utils.Utils;
|
||||
|
@ -40,6 +40,8 @@ public class PipeItemsWood extends Pipe<PipeTransportItems> implements IPowerRec
|
|||
private PipeLogicWood logic = new PipeLogicWood(this) {
|
||||
@Override
|
||||
protected boolean isValidConnectingTile(TileEntity tile) {
|
||||
if (tile instanceof IPipeTile)
|
||||
return false;
|
||||
if (!(tile instanceof IInventory))
|
||||
return false;
|
||||
if (!PipeManager.canExtractItems(pipe, tile.worldObj, tile.xCoord, tile.yCoord, tile.zCoord))
|
||||
|
|
Loading…
Reference in a new issue