It’s getting so hot in Texas that a prison has been ordered to lower the temperature

FILE - This Jan. 28, 2016 file photo shows a solitary confinement cell at New York City's Rikers Island jail. An internal report finds New York City's Rikers Island jail has entrenched problems responding to sexual abuse complaints. The troubles cited include emergency hotlines that don't work, confidential complaints read by fellow inmates and investigations that don't interview alleged attackers. (AP Photo/Bebeto Matthews, File)

On Wednesday, U.S. District Judge Keith Ellison ordered a prison in sweltering southeast Texas to lower its temperature to 88 degrees, giving them 15 days to come up with a plan to make that happen.

Videos by Rare

RELATED: Texas Inmates Testify on Cruel and Unusual Punishment.

The ruling comes as a result of a class action lawsuit brought by several inmates against the prison known as Pack Unit, located about 65 miles northwest of Houston. Currently, inmates are being housed in areas of the prison with no air conditioning, something the lawsuit contends is hazardous to their health, especially for elderly inmates and those suffering from other medical conditions.

Judge Ellison’s preliminary injunction, according to the Associated Press, applies to 500 of these “heat sensitive” inmates specifically, as they are at highest risk for health-related complications from the intense Texas heat.

In his ruling, Ellison writes that the conditions in the prison housing units are bad enough to “subject [inmates] to a substantial risk of serious injury or death,” adding that the prison was “deliberately indifferent” to the health risk of excessive heat in its housing areas.

While the ruling doesn’t mandate A/C installation, it does require other areas of the prison be modified to house inmates, or that they be moved to other facilities with air conditioning.

RELATED: Texas Cracks Down on the Prison Snitch Market.

What do you think?

Chloe Lattanzi shares another update on mom Olivia Newton-John’s cancer battle

After the Blackhawks’ soupiest player announced his retirement, things got pretty emotional behind the scenes