mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Fixes pill presses not checking for bottles (#52589)
This commit is contained in:
@@ -72,7 +72,9 @@
|
||||
stored_products += P
|
||||
if(stored_products.len)
|
||||
var/pill_amount = 0
|
||||
for(var/obj/item/reagent_containers/pill/P in loc)
|
||||
for(var/thing in loc)
|
||||
if(!istype(thing, /obj/item/reagent_containers/glass/bottle) && !istype(thing, /obj/item/reagent_containers/pill))
|
||||
continue
|
||||
pill_amount++
|
||||
if(pill_amount >= max_floor_products) //too much so just stop
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user