int liquidAmount = tank.getFluid().amount;
if (pipette.canPipette(itemstack) && liquidAmount > 0) {
if (liquidAmount > 0) {
FluidStack fillAmount = tank.drain(1000, false);
int filled = pipette.fill(itemstack, fillAmount, true);
tank.drain(filled, true);
}
} else {
FluidStack potential = pipette.drain(itemstack, pipette.getCapacity(itemstack), false);
if (potential != null)