Ex-cricketer Stuart MacGill allegedly complained about the quality of cocaine from a regular dealer before helping them to buy "good gear", a court has heard.