[MIRROR] make this more efficient (#10126)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-09 01:14:44 +01:00
committed by GitHub
co-authored by Kashargul
parent aee131a12c
commit 2f5c945c42
+12 -4
View File
@@ -71,28 +71,36 @@
return 1
/obj/machinery/atmospherics/pipe/return_air()
if(!QDELETED(src) || !parent)
if(QDELETED(src))
return
if(!parent)
parent = new /datum/pipeline()
parent.build_pipeline(src)
return parent.air
/obj/machinery/atmospherics/pipe/build_network()
if(!QDELETED(src) || !parent)
if(QDELETED(src))
return
if(!parent)
parent = new /datum/pipeline()
parent.build_pipeline(src)
return parent.return_network()
/obj/machinery/atmospherics/pipe/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
if(!QDELETED(src) || !parent)
if(QDELETED(src))
return
if(!parent)
parent = new /datum/pipeline()
parent.build_pipeline(src)
return parent.network_expand(new_network, reference)
/obj/machinery/atmospherics/pipe/return_network(obj/machinery/atmospherics/reference)
if(!QDELETED(src) || !parent)
if(QDELETED(src))
return
if(parent)
parent = new /datum/pipeline()
parent.build_pipeline(src)