(Getty)

Gay sex is set to be made illegal in Indonesia.

The country’s new criminal code, which includes a prohibition on homosexual acts, is currently being discussed in the House of Representatives, with a goal of passing it into law later this year.

Arsul Sani, a member of the People’s Representative Council which is forming the new code, said that the controversial ban would go into effect, but would somehow not be discriminatory.

Sani, who is also secretary-general of the United Development Party, said: “This article will not be deleted, but the formula will be improved so that there is no perception of discrimination.”

Aceh is the only part of the Muslim-majority country where gay sex is already illegal, as the region has Sharia law, having won this concession from the government as part of a 2005 autonomy deal.

The ban – which could make gay sex punishable by up to five years in prison – was set to come into effect in February, but was delayed.

The Indonesian Supreme Court narrowly blocked a similar measure from passing last year, but it seems that was only a temporary reprieve.

Sani said that his United Development Party and other Islamic parties would strongly oppose the removal of the gay sex ban from the proposed code, which could be in effect from August.

In January, Indonesian police arrested 12 transgender women in Aceh and shaved their heads in an effort “to turn them into men”.

The raid on salons was called “operasi penyakit masyarakat,” which translates as “community sickness operation”.

The police chief in Aceh said his officers also humiliated the trans women “by way of having them run for some time and telling them to chant loudly until their male voices came out.”

Speaking earlier this year, Andreas Harsono of Human Rights Watch said the new law would “create new discriminatory offences that do not exist in the current criminal code.

“It will slow down Indonesia’s efforts to develop their economy, society, knowledge [and] education … if law enforcement agencies are busy policing morality.

“It’s sounding like the Acehnese sharia code,” he added.

Last year, two men were caned 83 times in Aceh as a legal punishment for having gay sex.

The 20 and 23-year-old, identified only by their initials – MH and MT – were the first to be sentenced to punishment for gay sex in the region.

Amnesty International has repeatedly urged Indonesia to stop its horrific treatment of LGBT people in Aceh.

A report alleged that there had been attempts to ‘cover up’ the anti-LGBT oppression in the region by moving the floggings away from the public eye.

But it’s not just in Aceh where LGBT Indonesians suffer.

The caning punishment came the day after 141 men were arrested in Jakarta, the capital, for having a “gay sex party”.

And earlier that same month, eight men were arrested for holding a “gay party” in Surabaya, the second biggest city in Indonesia.