mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
Fixes nullspace breathing runtime. (#27777)
* Fixes nullspace breathing runtime. * Stack trace for nullspaced carbons.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user