From 0400158a3edacfa824b18b0e5ec407b02da3b93f Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Wed, 23 Jul 2025 16:55:16 -0400 Subject: [PATCH] oven door shut (#18049) * lazylen this * Fixes removing things from a closed oven --- code/modules/food/kitchen/cooking_machines/_cooker.dm | 2 +- code/modules/food/kitchen/cooking_machines/_mixer.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/food/kitchen/cooking_machines/_cooker.dm b/code/modules/food/kitchen/cooking_machines/_cooker.dm index 65f18607e0d..09a65140b39 100644 --- a/code/modules/food/kitchen/cooking_machines/_cooker.dm +++ b/code/modules/food/kitchen/cooking_machines/_cooker.dm @@ -80,7 +80,7 @@ if(istype(I) && can_insert(I)) // Why do hard work when we can just make them smack us? attackby(I, ui.user) - else if(istype(CI)) + else if(istype(CI) && can_remove_items(ui.user)) eject(CI, ui.user) return TRUE if(istype(I)) // Why do hard work when we can just make them smack us? diff --git a/code/modules/food/kitchen/cooking_machines/_mixer.dm b/code/modules/food/kitchen/cooking_machines/_mixer.dm index ba0ad212179..f5bfc9ce3f6 100644 --- a/code/modules/food/kitchen/cooking_machines/_mixer.dm +++ b/code/modules/food/kitchen/cooking_machines/_mixer.dm @@ -46,7 +46,7 @@ fundamental differences to_chat(usr, span_notice("You can't operate [src].")) return - if(output_options.len) + if(LAZYLEN(output_options)) var/choice = tgui_input_list(usr, "What specific food do you wish to make with \the [src]?", "Food Output Choice", output_options) if(!choice) return