mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user