From 6c04b27a52cf274bb54e1d9d117929415c939256 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Tue, 26 Apr 2022 13:58:22 -0700 Subject: [PATCH] Use adjust_heat it came to me in a dream --- code/modules/atmospherics/gasmixtures/reactions.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/atmospherics/gasmixtures/reactions.dm b/code/modules/atmospherics/gasmixtures/reactions.dm index d5497c1a62..85593cf0e0 100644 --- a/code/modules/atmospherics/gasmixtures/reactions.dm +++ b/code/modules/atmospherics/gasmixtures/reactions.dm @@ -789,6 +789,5 @@ var/G = pick(gases) air.adjust_moles(G, max(0.1, energy_remaining / (gases[G] * new_temp * 20))) energy_remaining = initial_energy - air.thermal_energy() - if(energy_remaining < 0) - air.set_temperature(air.return_temperature() + (energy_remaining / (air.heat_capacity()))) + air.adjust_heat(-energy_remaining) return REACTING