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