From f0d0970895787c4e9dd76f11d4e2da089e2d83e2 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Thu, 8 Jul 2021 00:42:12 -0400 Subject: [PATCH] Everything can be gone by the time this spawn ends Maybe this should be a timer with a callback, but it sure is a lot of logic to handle that --- code/modules/food/food/snacks.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 7a0daebe5f..5d2c6f3ca9 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -1014,7 +1014,9 @@ /obj/item/weapon/reagent_containers/food/snacks/donkpocket/proc/cooltime() if (src.warm) - spawn(4200) + spawn(420 SECONDS) + if(!src?.reagents) + return src.warm = 0 for(var/reagent in heated_reagents) src.reagents.del_reagent(reagent)