A considerable part of these people's work involved jobs that the locals of Australasia looked down on, which nevertheless contributed to diversifying the job market in Australasia.
While they earned some revenue, they also propelled greater economic growth for Australasia.
Moreover, their living and consumption in Australasia stimulated the economy, making it a profitable trade-off.
Actually, such an issue is not unique to Australasia. The United States, another country with a high influx of immigrants, also faced the issue of foreign workers.
The United States dealt with it simply: when foreign workers were needed, they became an essential guarantee for the country's economic growth.
If an economic crisis occurred or conflicts arose between American citizens and foreigners, these people were quickly abandoned as illegal immigrants. Some were deported, while others were left to fend for themselves.