Fixes nullspace breathing runtime. (#27777)

* Fixes nullspace breathing runtime.

* Stack trace for nullspaced carbons.
This commit is contained in:
Charlie Nolan
2025-01-06 08:37:15 -08:00
committed by GitHub
parent 5cd21a0b7d
commit 265e462f55
2 changed files with 7 additions and 1 deletions
@@ -55,7 +55,11 @@
/datum/milla_safe/carbon_breathe/on_run(mob/living/carbon/carbon)
var/turf/T = get_turf(carbon)
carbon.breathe(get_turf_air(T))
if(istype(T))
carbon.breathe(get_turf_air(T))
else
var/datum/gas_mixture/vacuum = new()
carbon.breathe(vacuum)
//Second link in a breath chain, calls check_breath()
/mob/living/carbon/proc/breathe(datum/gas_mixture/environment)
@@ -1,6 +1,8 @@
/mob/living/carbon/Initialize(mapload)
. = ..()
GLOB.carbon_list += src
if(!loc)
stack_trace("Carbon mob being instantiated in nullspace")
/mob/living/carbon/Destroy()
// This clause is here due to items falling off from limb deletion