From 9566906d0c3fb27ec08599564241b0626d9bae38 Mon Sep 17 00:00:00 2001 From: Chen Marisa <18307183+flleeppyy@users.noreply.github.com> Date: Mon, 13 Jan 2025 09:54:25 -0800 Subject: [PATCH] stop friers from frying if there's nothing in the basket (#4861) --- .../code/modules/brewin_and_chewin/chewing/fryer_overhaul.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/monkestation/code/modules/brewin_and_chewin/chewing/fryer_overhaul.dm b/monkestation/code/modules/brewin_and_chewin/chewing/fryer_overhaul.dm index cdbda9067842..818b74fbb3c0 100644 --- a/monkestation/code/modules/brewin_and_chewin/chewing/fryer_overhaul.dm +++ b/monkestation/code/modules/brewin_and_chewin/chewing/fryer_overhaul.dm @@ -75,6 +75,11 @@ if(istype(weapon, /obj/item/reagent_containers/cooking_container/deep_basket) && !basket) weapon.forceMove(src) basket = weapon + if (!length(basket.contents)) + frying = FALSE + icon_state = "fryer_off" + return + icon_state = "fryer_on" frying = TRUE for(var/obj/item/item as anything in basket.contents)