mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 13:10:13 +00:00
#641 Fluid conduits not connecting to BuildCraft 5.0.5 Waterproof Pipes
This commit is contained in:
1 parent
d29321b806
commit
aa999fadb0
2 files changed
+10
-8
No files matched your search
@@ -9,7 +9,6 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.FluidTankInfo;
|
||||
import net.minecraftforge.fluids.IFluidHandler;
|
||||
import buildcraft.api.transport.IPipeTile;
|
||||
import buildcraft.api.transport.IPipeTile.PipeType;
|
||||
@@ -59,11 +58,16 @@ public abstract class AbstractLiquidConduit extends AbstractConduit implements I
|
||||
if(h == null) {
|
||||
return false;
|
||||
}
|
||||
FluidTankInfo[] info = h.getTankInfo(direction.getOpposite());
|
||||
if(info == null) {
|
||||
return false;
|
||||
}
|
||||
return info.length > 0;
|
||||
//TODO: This check was added to work around a bug in dynamic tanks, but
|
||||
//it causes issues with not conecting to empty tanks such as dim. trans +
|
||||
//BC fluid pipes, so I am removing it for now.
|
||||
|
||||
// FluidTankInfo[] info = h.getTankInfo(direction.getOpposite());
|
||||
// if(info == null) {
|
||||
// return false;
|
||||
// }
|
||||
// return info.length > 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -219,8 +219,6 @@ public class BlockVat extends AbstractMachineBlock<TileVat> {
|
||||
return GuiHandler.GUI_ID_STILL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) {
|
||||
|
||||
Reference in new issue
Block a user