Prevent ghosts/others from messing with hydrotrays

This commit is contained in:
Aronai Sieyes
2020-05-05 09:11:05 -04:00
parent 5556588dbd
commit e3bf07f90f
+5 -3
View File
@@ -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 ..()