From 7f3918b279d848f9788fee988cb2ec903cb8afff Mon Sep 17 00:00:00 2001 From: chuga-git <98280110+chuga-git@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:49:37 -0500 Subject: [PATCH] adds adjacency check to kitchen_machine AltClick (#26591) --- .../food_and_drinks/kitchen_machinery/kitchen_machine.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm b/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm index 4d1a35328383..965e9a95911f 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/kitchen_machine.dm @@ -565,7 +565,7 @@ dispose(ui.user) /obj/machinery/kitchen_machine/AltClick(mob/user) - if(!check_useable(user)) + if(!Adjacent(user) || !check_useable(user)) return cook()