From a57e91bb6073bcebd2196385d01a87f71efd55b3 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 27 Jun 2022 03:15:11 +0200 Subject: [PATCH] [MIRROR] Scrubbers will now turn off when connected pipe disconnects. [MDB IGNORE] (#14554) * Scrubbers will now turn off when connected pipe disconnects. (#67985) Scrubber thing. Scrubbers will now turn off on atmos machinery disconnect() proc call. * Scrubbers will now turn off when connected pipe disconnects. Co-authored-by: Pickle-Coding <58013024+Pickle-Coding@users.noreply.github.com> --- .../machinery/components/unary_devices/vent_scrubber.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm index 2b2096ab970..32ee0042db5 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm @@ -524,5 +524,9 @@ living_mobs += WEAKREF(new_mob) visible_message(span_warning("[new_mob] crawls out of [src]!")) +/obj/machinery/atmospherics/components/unary/vent_scrubber/disconnect() + ..() + on = FALSE + #undef SIPHONING #undef SCRUBBING