mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user