mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
refactors some item transfers to use transfer_item_to() (#28405)
This commit is contained in:
@@ -409,11 +409,10 @@
|
||||
to_chat(user, "The headset can't hold another key!")
|
||||
return
|
||||
|
||||
if(!user.drop_item_to_ground(key))
|
||||
if(!user.transfer_item_to(key, src, FALSE, FALSE))
|
||||
to_chat(user, "<span class='warning'>[key] is stuck to your hand, you can't insert it in [src].</span>")
|
||||
return
|
||||
|
||||
key.forceMove(src)
|
||||
if(!keyslot1)
|
||||
keyslot1 = key
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user