mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
1 parent
f09f8d2838
commit
964da87d77
1 file changed
+10
-1
@@ -236,13 +236,22 @@ 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)
|
||||
{
|
||||
return gasTank.canDraw(type);
|
||||
if(configComponent.hasSideForData(TransmissionType.GAS, facing, 2, side))
|
||||
{
|
||||
return gasTank.canDraw(type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user