if(operatingTicks < MekanismUtils.getTicks(this, TICKS_REQUIRED))
{
operatingTicks++;
}
else {
GasStack stack = RecipeHandler.getItemToGasOutput(inventory[0], true, Recipe.CHEMICAL_OXIDIZER.get());
gasTank.receive(stack, true);
operatingTicks = 0;
if(inventory[0].stackSize <= 0)
{
inventory[0] = null;
}
markDirty();
}
}
else {
if(prevEnergy >= getEnergy())
{
setActive(false);
}
}
prevEnergy = getEnergy();
if(gasTank.getGas() != null)
{
GasStack toSend = new GasStack(gasTank.getGas().getGas(), Math.min(gasTank.getStored(), gasOutput));
TileEntity tileEntity = Coord4D.get(this).getFromSide(MekanismUtils.getRight(facing)).getTileEntity(worldObj);
if(tileEntity instanceof IGasHandler)
{