Merge pull request #2140 from GauHelldragon/master

Secure Closet Fix
This commit is contained in:
Hawk-v3
2013-01-04 19:41:31 -08:00
2 changed files with 4 additions and 0 deletions
@@ -63,6 +63,8 @@
src.MouseDrop_T(W:affecting, user) //act like they were dragged onto the closet
else
user << "<span class='notice'>The locker is too small to stuff [W] into!</span>"
if(isrobot(user))
return
user.drop_item()
if(W)
W.loc = src.loc
@@ -78,6 +78,8 @@ Note: Must be placed within 3 tiles of the R&D Console
user << "\red The protolathe is busy right now."
return
if (istype(O, /obj/item) && !loaded_item)
if(isrobot(user)) //Don't put your module items in there!
return
if(!O.origin_tech)
user << "\red This doesn't seem to have a tech origin!"
return