Stop crates and lockers from taking stuff they shouldn't. (#24583)

This commit is contained in:
Charlie Nolan
2024-03-12 05:13:00 -07:00
committed by GitHub
parent 45fe085105
commit 495030f5a4
@@ -190,6 +190,9 @@
if(!user.drop_item()) //couldn't drop the item
to_chat(user, "<span class='notice'>\The [W] is stuck to your hand, you cannot put it in \the [src]!</span>")
return
if(W.loc != user.loc)
// It went somewhere else, don't teleport it back.
return
if(W)
W.forceMove(loc)
return TRUE // It's resolved. No afterattack needed. Stops you from emagging lockers when putting in an emag