Fix installing atmos pipes (#21445)

See title

obj/machinery/atmospherics/pipe and co. were expecting to only
LateInitialize during mapload, but the recent power signals change
caused them to always fire LateInitialize, which because of pipe
shitcode resulted in a ton of errors
This commit is contained in:
Wildkins
2025-10-05 17:23:22 +00:00
committed by GitHub
parent 358636bb84
commit 0496789c54
2 changed files with 15 additions and 1 deletions
+3 -1
View File
@@ -37,10 +37,12 @@
/obj/machinery/atmospherics/pipe/drain_power()
return -1
/obj/machinery/atmospherics/pipe/Initialize()
/obj/machinery/atmospherics/pipe/Initialize(mapload)
if(istype(get_turf(src), /turf/simulated/wall) || istype(get_turf(src), /turf/unsimulated/wall))
level = 1
. = ..()
if(!mapload)
return INITIALIZE_HINT_NORMAL
/obj/machinery/atmospherics/pipe/hides_under_flooring()
return level != 2