Allow extraction from gastanks.
Fixes
@@ -236,14 +236,23 @@ public class TileEntityGasTank extends TileEntityContainerBlock implements IGasH
@Override
public GasStack drawGas(EnumFacing side, int amount, boolean doTransfer)
{
+ if(canDrawGas(side, null))
+ {
+ return gasTank.draw(amount, doTransfer);
+ }
+
return null;
}
@Override
public boolean canDrawGas(EnumFacing side, Gas type)
+ {
+ if(configComponent.hasSideForData(TransmissionType.GAS, facing, 2, side))
{
return gasTank.canDraw(type);
}
+ return false;
+ }
@Override
public boolean canReceiveGas(EnumFacing side, Gas type)
