From ebf2181074521d4dfd6756f60c06da25dd5564e4 Mon Sep 17 00:00:00 2001 From: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com> Date: Tue, 8 Feb 2022 07:34:35 -0500 Subject: [PATCH] Fixes ashwalker lung runtimes on runtimestation (#64707) I've been getting this error every time I launch a local server on runtimestation with LOWMEMORYMODE for months and months now from one of the ashwalker dummies. I'm now finally getting around to fixing it so I don't have to see this same damn error all the time. --- code/modules/surgery/organs/lungs.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/surgery/organs/lungs.dm b/code/modules/surgery/organs/lungs.dm index 76a002bc40d..c3e1ae6949d 100644 --- a/code/modules/surgery/organs/lungs.dm +++ b/code/modules/surgery/organs/lungs.dm @@ -585,6 +585,10 @@ . = ..() var/datum/gas_mixture/immutable/planetary/mix = SSair.planetary[LAVALAND_DEFAULT_ATMOS] + + if(!mix?.total_moles()) // this typically means we didn't load lavaland, like if we're using #define LOWMEMORYMODE + return + // Take a "breath" of the air var/datum/gas_mixture/breath = mix.remove(mix.total_moles() * BREATH_PERCENTAGE)