Skip to content

Commit

Permalink
Fix lung reagents causing runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
noelle-lavenza committed Feb 5, 2022
1 parent a8e15c9 commit 13e3db2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/modules/organs/internal/lungs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@
QDEL_NULL(inhaled)
. = ..()

/obj/item/organ/internal/lungs/Initialize()
/obj/item/organ/internal/lungs/setup_reagents()
. = ..()
inhaled = new/datum/reagents/metabolism(240, (owner || src), CHEM_INHALE)
if(!inhaled)
inhaled = new/datum/reagents/metabolism(240, (owner || src), CHEM_INHALE)
if(!inhaled.my_atom)
inhaled.my_atom = src

/obj/item/organ/internal/lungs/do_install()
/obj/item/organ/internal/lungs/do_install(mob/living/carbon/human/target, obj/item/organ/external/affected, in_place)
if(!(. = ..()))
return
inhaled.my_atom = owner
Expand Down

0 comments on commit 13e3db2

Please sign in to comment.