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