From 55982d763624ef47d19853ee478dd93027cd336d Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 11 Mar 2021 18:55:17 +0100 Subject: [PATCH] [MIRROR] Fix being able to alt-click and ctrl-click while inside cryo tubes (#4081) * Fix being able to alt-click and ctrl-click while inside cryo tubes (#57587) * Fix being able to alt-click and ctrl-click while inside cryo tubes Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> --- .../atmospherics/machinery/components/unary_devices/cryo.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index 0140f9f4fb9..468cf23acb4 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -488,6 +488,9 @@ GLOBAL_VAR_INIT(cryo_overlay_cover_off, mutable_appearance('icons/obj/cryogenics beaker = null . = TRUE +/obj/machinery/atmospherics/components/unary/cryo_cell/can_interact(mob/user) + return ..() && user.loc != src + /obj/machinery/atmospherics/components/unary/cryo_cell/CtrlClick(mob/user) if(can_interact(user) && !state_open) set_on(!on)