Voluntary contribution games are a classic social dilemma in which the individually dominant strategies result in a poor performance of the population. However, the negative zero-contribution predictions from these types of social dilemma situations give way to more positive (near-)efficient ones when assortativity, instead of random mixing, governs the matching process in the population. Under assortative matching, agents contribute more than what would otherwise be strategically rational in order to be matched with others doing likewise. An open question has been the robustness of such predictions when heterogeneity in budgets amongst individuals is allowed. Here, we show analytically that the consequences of permitting heterogeneity depend crucially on the exact nature of the underlying public-good provision efficacy, but generally are rather devastating. Using computational methods, we quantify the loss resulting from heterogeneity vis-a-vis the homogeneous case as a function of (i) the public-good provision efficacy and (ii) the population inequality.