From a57e5a12a4b4b0a48eb5f24fda7ccdbab50d9068 Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:12:51 +0100 Subject: [PATCH] Berries juicing fix Added an additional check to code for juicing people to avoid some null cases --- GainStation13/code/datums/diseases/advance/symptoms/berry.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GainStation13/code/datums/diseases/advance/symptoms/berry.dm b/GainStation13/code/datums/diseases/advance/symptoms/berry.dm index 8e8a4070a9..31ed26ac74 100644 --- a/GainStation13/code/datums/diseases/advance/symptoms/berry.dm +++ b/GainStation13/code/datums/diseases/advance/symptoms/berry.dm @@ -39,7 +39,7 @@ M.reagents.add_reagent(infection_reagent, max(A.totalStageSpeed(), 1)) /obj/item/reagent_containers/glass/attack(mob/M, mob/user, obj/target) - if(M.reagents.get_reagent_amount(/datum/reagent/blueberry_juice) > 0 && (reagents.total_volume + min(amount_per_transfer_from_this, 10)) <= volume) + if(M.reagents && M.reagents.get_reagent_amount(/datum/reagent/blueberry_juice) > 0 && (reagents.total_volume + min(amount_per_transfer_from_this, 10)) <= volume) reagents.add_reagent(/datum/reagent/blueberry_juice, min(10, amount_per_transfer_from_this)) M.reagents.remove_reagent(/datum/reagent/blueberry_juice, min(10, amount_per_transfer_from_this)) if(M != user)