mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Stop crates and lockers from taking stuff they shouldn't. (#24583)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user