From 8dfd54da008250aa9df78e9fb0033993c3affbf4 Mon Sep 17 00:00:00 2001 From: Time-Green Date: Mon, 8 Mar 2021 14:17:30 +0100 Subject: [PATCH] Fixes reaction chamber logic errors (#57484) --- code/modules/plumbing/plumbers/reaction_chamber.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/plumbing/plumbers/reaction_chamber.dm b/code/modules/plumbing/plumbers/reaction_chamber.dm index 1f4f0446c5f..06f3628cbee 100644 --- a/code/modules/plumbing/plumbers/reaction_chamber.dm +++ b/code/modules/plumbing/plumbers/reaction_chamber.dm @@ -55,12 +55,12 @@ return NONE /obj/machinery/plumbing/reaction_chamber/process(delta_time) - if(!reagents.is_reacting && reagents.ph < alkaline_limit) + if(reagents.is_reacting && reagents.ph < alkaline_limit) alkaline_beaker.reagents.trans_to(reagents, 1 * delta_time) - if(!reagents.is_reacting && reagents.ph > acidic_limit) + if(reagents.is_reacting && reagents.ph > acidic_limit) acidic_beaker.reagents.trans_to(reagents, 1 * delta_time) - if(!emptying) //suspend heating/cooling during emptying phase + if(!emptying || reagents.is_reacting) //suspend heating/cooling during emptying phase reagents.adjust_thermal_energy((target_temperature - reagents.chem_temp) * heater_coefficient * delta_time * SPECIFIC_HEAT_DEFAULT * reagents.total_volume) //keep constant with chem heater reagents.handle_reactions()