From 6564e227611ed8e55ddec18812d038a95a9ef02f Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Sat, 29 Jun 2024 11:51:14 +0200 Subject: [PATCH] Fat mask null fix Fixed a runtime error in the drone mask caused by null users --- GainStation13/code/clothing/fat_mask.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GainStation13/code/clothing/fat_mask.dm b/GainStation13/code/clothing/fat_mask.dm index cc1dc7b1..db8091ca 100644 --- a/GainStation13/code/clothing/fat_mask.dm +++ b/GainStation13/code/clothing/fat_mask.dm @@ -17,7 +17,10 @@ return PROCESS_KILL /obj/item/clothing/mask/gas/fattening/process() - C.adjust_fatness(5, FATTENING_TYPE_ITEM) + if(C != null) + C.adjust_fatness(5, FATTENING_TYPE_ITEM) + else + return PROCESS_KILL /datum/crafting_recipe/fat_mask name = "Drone Mask"