[MIRROR] Makes oven trays count as valid trays for cutting things on..... (#28330)

* Makes oven trays count as valid trays for cutting things on..... (#84224)

🆑 ShizCalev
qol: Oven trays now count as valid trays to cut food on.
/🆑

It's a literally a tray. Should count too.

* Makes oven trays count as valid trays for cutting things on.....

---------

Co-authored-by: Afevis <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-24 09:08:54 +05:30
committed by GitHub
co-authored by Afevis
parent 092a902ecc
commit bb5f477461
+1 -1
View File
@@ -46,7 +46,7 @@
var/found_location = found_item.loc
var/found_turf = isturf(found_location)
var/found_table = locate(/obj/structure/table) in found_location
var/found_tray = locate(/obj/item/storage/bag/tray) in found_location
var/found_tray = locate(/obj/item/storage/bag/tray) in found_location || locate(/obj/item/plate/oven_tray) in found_location
if(!found_turf && !istype(found_location, /obj/item/storage/bag/tray) || found_turf && !(found_table || found_tray))
to_chat(user, span_notice("You cannot make [initial(result_atom_type.name)] here! You need a table or at least a tray."))
return