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
This commit is contained in:
Aronai Sieyes
2021-07-08 00:42:12 -04:00
parent a32b1975ee
commit f0d0970895
+3 -1
View File
@@ -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)