Merge pull request #4072 from thommy101/issue4067

Do not extract steam as a gas from a reactor - Fixes #4067
This commit is contained in:
Aidan authored and GitHub committed 2017-02-11 15:59:49 -05:00
commit 4d5ac6535f
1 file changed
+2 -10
@@ -198,14 +198,6 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
@Override
public GasStack drawGas(EnumFacing side, int amount, boolean doTransfer)
{
if(getReactor() != null)
{
if(getReactor().getSteamTank().getFluidAmount() > 0)
{
return new GasStack(GasRegistry.getGas("steam"), getReactor().getSteamTank().drain(amount, doTransfer).amount);
}
}
return null;
}
@@ -218,7 +210,7 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
@Override
public boolean canDrawGas(EnumFacing side, Gas type)
{
return (type == GasRegistry.getGas("steam"));
return false;
}
@Override
@@ -491,4 +483,4 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
{
return EnumActionResult.PASS;
}
}
}