Plantbag fixes (#388)

Fixed icons getting stuck onscreen when emptying a plantbag into a
biogenerator or grinder
Increased the biogenerator's capacity to be able to hold an entire plant
bag. because it's a giant stationary machine and the small capacity was
nonsensical
This commit is contained in:
NanakoAC
2016-06-20 14:12:33 +01:00
committed by skull132
parent 4e61099040
commit e5d64716c2
3 changed files with 48 additions and 9 deletions

View File

@@ -617,12 +617,12 @@
if(istype(O,/obj/item/weapon/storage/bag/plants))
var/failed = 1
for(var/obj/item/G in O.contents)
var/obj/item/weapon/storage/bag/P = O
for(var/obj/item/G in P.contents)
if(!G.reagents || !G.reagents.total_volume)
continue
failed = 0
O.contents -= G
G.loc = src
P.remove_from_storage(G,src)
holdingitems += G
if(holdingitems && holdingitems.len >= limit)
break