Fix bottlers runtiming every second if input turf is empty (#64717)

Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
Gamer025
2022-02-07 19:39:19 -08:00
committed by GitHub
co-authored by Zonespace
parent d49489875e
commit e70671b16b
+2 -2
View File
@@ -75,8 +75,8 @@
valid_output_configuration = FALSE
return PROCESS_KILL
///see if machine has enough to fill
if(reagents.total_volume >= wanted_amount && anchored)
///see if machine has enough to fill, is anchored down and has any inputspot objects to pick from
if(reagents.total_volume >= wanted_amount && anchored && length(inputspot.contents))
var/obj/AM = pick(inputspot.contents)///pick a reagent_container that could be used
if((istype(AM, /obj/item/reagent_containers) && !istype(AM, /obj/item/reagent_containers/hypospray/medipen)) || istype(AM, /obj/item/ammo_casing/shotgun/dart))
var/obj/item/reagent_containers/B = AM