From fbd575f6efde098311f2be8b39f207e7cd64655a Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Mon, 27 Aug 2012 01:04:58 +0000 Subject: [PATCH] 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 --- code/game/objects/items.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 93ce65a274..35f871f334 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -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)