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