From dadcf69212e949eaac8294356960f2c83893fea8 Mon Sep 17 00:00:00 2001 From: PsyCommando Date: Sat, 24 Sep 2022 18:28:19 -0400 Subject: [PATCH] Fix omni filter display --- code/modules/atmospherics/components/omni_devices/filter.dm | 5 ++++- nano/templates/omni_filter.tmpl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/modules/atmospherics/components/omni_devices/filter.dm b/code/modules/atmospherics/components/omni_devices/filter.dm index 434e0f8f5bd..e51f19da54b 100644 --- a/code/modules/atmospherics/components/omni_devices/filter.dm +++ b/code/modules/atmospherics/components/omni_devices/filter.dm @@ -163,7 +163,10 @@ return data /obj/machinery/atmospherics/omni/filter/proc/mode_send_switch(var/datum/omni_port/P) - if(P.filtering) + if(istype(P.filtering, /decl/material)) + var/decl/material/gas/G = P.filtering + return G.gas_symbol + if(ispath(P.filtering)) var/decl/material/gas/G = GET_DECL(P.filtering) return G.gas_symbol diff --git a/nano/templates/omni_filter.tmpl b/nano/templates/omni_filter.tmpl index 54f757ecb79..aa463cfe735 100644 --- a/nano/templates/omni_filter.tmpl +++ b/nano/templates/omni_filter.tmpl @@ -82,7 +82,7 @@ Input {{else value.output}} Output - {{else value.f_type}} + {{else value.filter}} {{:value.f_type}} {{else}} Disabled