From 1b01ffaed905ab1e9572b5a262ae28cb8a67104b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 17 May 2022 04:58:29 +0200 Subject: [PATCH] [MIRROR] Fix tank compressor rotation-related bugs [MDB IGNORE] (#13652) * Fix tank compressor rotation-related bugs (#66998) * Fix tank compressor rotation-related bugs Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com> --- .../machinery/components/components_base.dm | 1 - code/modules/research/ordnance/tank_compressor.dm | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/atmospherics/machinery/components/components_base.dm b/code/modules/atmospherics/machinery/components/components_base.dm index 59e05013d46..691c95ba87e 100644 --- a/code/modules/atmospherics/machinery/components/components_base.dm +++ b/code/modules/atmospherics/machinery/components/components_base.dm @@ -268,7 +268,6 @@ atmos_init() for(var/i in 1 to device_type) var/obj/machinery/atmospherics/node = nodes[i] - node = nodes[1] if(node) node.atmos_init() node.add_member(src) diff --git a/code/modules/research/ordnance/tank_compressor.dm b/code/modules/research/ordnance/tank_compressor.dm index f6596fb5081..dadf5616909 100644 --- a/code/modules/research/ordnance/tank_compressor.dm +++ b/code/modules/research/ordnance/tank_compressor.dm @@ -80,6 +80,16 @@ return FALSE return TRUE +/obj/machinery/atmospherics/components/binary/tank_compressor/default_change_direction_wrench(mob/user, obj/item/I) + if(!..()) + return FALSE + set_init_directions() + update_appearance() + return TRUE + +/obj/machinery/atmospherics/components/binary/circulator/get_node_connects() + return list(turn(dir, 180), dir) // airs[2] is input which is facing dir, airs[1] is output which is facing the other side of dir + /obj/machinery/atmospherics/components/binary/tank_compressor/screwdriver_act(mob/living/user, obj/item/tool) if(active || inserted_tank) return FALSE