From 09781fd2b0f2ea911c501fcd222903ce05ed223c Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:16:50 -0500 Subject: [PATCH] fixes a runtime if your hand gets cut off (#22073) --- code/modules/surgery/organs/subtypes/standard_organs.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/surgery/organs/subtypes/standard_organs.dm b/code/modules/surgery/organs/subtypes/standard_organs.dm index 9c219794f0e..873f46084e6 100644 --- a/code/modules/surgery/organs/subtypes/standard_organs.dm +++ b/code/modules/surgery/organs/subtypes/standard_organs.dm @@ -205,6 +205,8 @@ /obj/item/organ/external/hand/proc/update_hand_missing() // we need to come back to this once the hand is actually removed/dead + if(!owner) // Rather not have this trigger on already remove limbs + return addtimer(CALLBACK(owner, TYPE_PROC_REF(/mob/living/carbon/human, update_hands_hud), 0)) /obj/item/organ/external/hand/right