From 5c04704186c8b8e7174e8665295beb2c569ddf96 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Fri, 3 Feb 2017 05:01:19 -0500 Subject: [PATCH] Fixes modular ID card slots (#23619) --- code/modules/modular_computers/hardware/card_slot.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/modular_computers/hardware/card_slot.dm b/code/modules/modular_computers/hardware/card_slot.dm index c038fd09b39..417690a7e05 100644 --- a/code/modules/modular_computers/hardware/card_slot.dm +++ b/code/modules/modular_computers/hardware/card_slot.dm @@ -46,8 +46,11 @@ if(stored_card && stored_card2) user << "You try to insert \the [I] into \the [src], but its slots are occupied." return FALSE - if(user && !user.transferItemToLoc(I, src)) - return FALSE + if(user) + if(!user.transferItemToLoc(I, src)) + return FALSE + else + I.forceMove(src) if(!stored_card) stored_card = I @@ -100,4 +103,4 @@ /obj/item/weapon/computer_hardware/card_slot/examine(mob/user) ..() if(stored_card || stored_card2) - user << "There appears to be something loaded in the card slots." \ No newline at end of file + user << "There appears to be something loaded in the card slots."