[MIRROR] bluespace vendor fix (#4973)

* bluespace vendor fix (#58461)

fixes the bluespace vendor locking up if it ran out of a gas type while giving it to you.

* bluespace vendor fix

Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-04-17 14:13:32 +01:00
committed by GitHub
co-authored by Ghilker
parent 80ecccce60
commit 5e3399e674
@@ -112,6 +112,14 @@
if(!selected_gas)
return
var/gas_path = gas_id2path(selected_gas)
if(!connected_machine.bluespace_network.gases[gas_path])
pumping = FALSE
selected_gas = null
mode = BS_MODE_IDLE
update_appearance()
return
connected_machine.bluespace_network.pump_gas_to(internal_tank.air_contents, (tank_filling_amount * 0.01) * 10 * ONE_ATMOSPHERE, gas_path)
/obj/machinery/bluespace_vendor/multitool_act(mob/living/user, obj/item/multitool/multitool)