{
for(Gas gas : GasRegistry.getRegisteredGasses())
{
if(gas.hasFluid())
{
arecipes.add(new CachedIORecipe(new GasStack(gas, 1), new FluidStack(gas.getFluid(), 1), true));
arecipes.add(new CachedIORecipe(new GasStack(gas, 1), new FluidStack(gas.getFluid(), 1), false));
}
}
}
else if(outputId.equals("gas") && results.length == 1 && results[0] instanceof GasStack)
{
GasStack gas = (GasStack)results[0];
if(gas.getGas().hasFluid())
{
arecipes.add(new CachedIORecipe(new GasStack(gas.getGas(), 1), new FluidStack(gas.getGas().getFluid(), 1), false));
}
}
else if(outputId.equals("fluid") && results.length == 1 && results[0] instanceof FluidStack)
{
FluidStack fluid = (FluidStack)results[0];
Gas gas = GasRegistry.getGas(fluid.getFluid());
if(gas != null)
{
arecipes.add(new CachedIORecipe(new GasStack(gas, 1), new FluidStack(fluid.getFluid(), 1), true));
}
}
else {
super.loadCraftingRecipes(outputId, results);
}