Storage items that pick up all of x item on a tile will no longer pick up items they're not allowed to hold. Fixes issue 862.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4556 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
johnsonmt88@gmail.com
2012-08-27 01:04:58 +00:00
parent c14f242b4e
commit fbd575f6ef

View File

@@ -165,7 +165,7 @@
if(isturf(src.loc))
for(var/obj/item/I in src.loc)
if(I != src) //We'll do the one we clicked on last.
if(!S.can_be_inserted(src))
if(!S.can_be_inserted(I))
continue
S.handle_item_insertion(I, 1) //The 1 stops the "You put the [src] into [S]" insertion message from being displayed.
S.handle_item_insertion(src)