mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user