Evidence bag now respects nodrop (#24171)

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
Adrer
2024-02-19 12:40:46 +01:00
committed by GitHub
parent 6b57a61b00
commit 9064b6e7b2
+1 -5
View File
@@ -41,11 +41,7 @@
if(isstorage(I.loc)) //in a container.
var/obj/item/storage/U = I.loc
U.remove_from_storage(I, src)
else if(user.l_hand == I) //in a hand
user.drop_l_hand()
else if(user.r_hand == I) //in a hand
user.drop_r_hand()
else
else if(!user.is_holding(I) || !user.unEquip(I)) //in a hand
return
user.visible_message("<span class='notice'>[user] puts [I] into [src].</span>", "<span class='notice'>You put [I] inside [src].</span>",\