From 7a05cbcbf0ddb0651ea46c2de868b742a8c74753 Mon Sep 17 00:00:00 2001 From: Will <7099514+Willburd@users.noreply.github.com> Date: Sat, 20 Jun 2026 15:54:03 -0400 Subject: [PATCH] fix that (#19535) --- code/game/machinery/cryo.dm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 9514202b5e..dc311e3c01 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -182,22 +182,30 @@ var/obj/item/grab/grab = G if(!ismob(grab.affecting)) return - if(occupant) - to_chat(user,span_warning("\The [src] is already occupied by [occupant].")) - if(grab.affecting.has_buckled_mobs()) - to_chat(user, span_warning("\The [grab.affecting] has other entities attached to it. Remove them first.")) - return var/mob/M = grab.affecting + if(!check_put(M, user)) + return qdel(grab) put_mob(M) return /obj/machinery/atmospherics/unary/cryo_cell/MouseDrop_T(mob/target, mob/user) //Allows borgs to put people into cryo without external assistance - if(user.stat || user.lying || !Adjacent(user) || !target.Adjacent(user)|| !ishuman(target)) + if(!check_put(target, user)) return put_mob(target) +/obj/machinery/atmospherics/unary/cryo_cell/proc/check_put(mob/target, mob/user) + if(user.stat || user.lying || !Adjacent(user) || !target.Adjacent(user)|| !ishuman(target)) + return FALSE + if(occupant) + to_chat(user,span_warning("\The [src] is already occupied by [occupant].")) + return FALSE + if(target.has_buckled_mobs() || target.buckled) + to_chat(user, span_warning("\The [target] has other entities attached to it. Remove them first.")) + return FALSE + return TRUE + /obj/machinery/atmospherics/unary/cryo_cell/update_icon() cut_overlay(fluid) fluid.color = null