mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user