@Override
 public ItemStack decrStackSize(int slot, int amount) {
   if (!formed) return null;
   TileEntityBottlingMachine master = master();
   if (master != null) return master.decrStackSize(slot, amount);
   ItemStack stack = getStackInSlot(slot);
   if (stack != null)
     if (stack.stackSize <= amount) setInventorySlotContents(slot, null);
     else {
       stack = stack.splitStack(amount);
       if (stack.stackSize == 0) setInventorySlotContents(slot, null);
     }
   this.markDirty();
   return stack;
 }