From 2efb234bcb0558df636e78726dc6c582be0c9bff Mon Sep 17 00:00:00 2001 From: Mikhail Dzianishchyts Date: Mon, 19 Feb 2024 17:51:52 +0300 Subject: [PATCH] Fix item dropping when upgrading camera (#24214) --- code/game/machinery/camera/camera.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index 8df25705253..6f72fe49a2f 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -126,7 +126,7 @@ var/msg2 = "The camera already has that upgrade!" if(istype(I, /obj/item/stack/sheet/mineral/plasma) && panel_open) - if(!user.drop_item()) + if(!user.canUnEquip(I, FALSE)) to_chat(user, "[I] is stuck to your hand!") return if(!isEmpProof()) @@ -137,7 +137,7 @@ else to_chat(user, "[msg2]") else if(istype(I, /obj/item/assembly/prox_sensor) && panel_open) - if(!user.drop_item()) + if(!user.canUnEquip(I, FALSE)) to_chat(user, "[I] is stuck to your hand!") return if(!isMotion())