oven door shut (#18049)

* lazylen this

* Fixes removing things from a closed oven
This commit is contained in:
Cameron Lennox
2025-07-23 22:55:16 +02:00
committed by GitHub
parent a416fdcac0
commit 0400158a3e
2 changed files with 2 additions and 2 deletions
@@ -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?
@@ -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