From e3bf07f90f0c40bb4746e7be993f238355cbfb52 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Tue, 5 May 2020 09:11:05 -0400 Subject: [PATCH] Prevent ghosts/others from messing with hydrotrays --- code/modules/hydroponics/trays/tray.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 0472ed8a28..63b6466ac6 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -126,9 +126,11 @@ "mutagen" = 15 ) -/obj/machinery/portable_atmospherics/hydroponics/AltClick() - if(mechanical && !usr.incapacitated() && Adjacent(usr)) - close_lid(usr) +/obj/machinery/portable_atmospherics/hydroponics/AltClick(var/mob/living/user) + if(!istype(user)) + return + if(mechanical && !user.incapacitated() && Adjacent(user)) + close_lid(user) return 1 return ..()