From 80821c0b7a24a9f5e286b2fc906c04cebe79c21f Mon Sep 17 00:00:00 2001 From: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Date: Sat, 12 Oct 2024 20:08:52 +0300 Subject: [PATCH] Fixes machines not registering on new area's powernet when it is created (#26985) * Machines are now moved to the new power net when a new area is created where they are * Moves the machine reregistration to /turf/proc/change_area(area/old_area, area/new_area) --- code/modules/lighting/lighting_turf.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/lighting/lighting_turf.dm b/code/modules/lighting/lighting_turf.dm index 0ab81a99f7c..a0c39b80da3 100644 --- a/code/modules/lighting/lighting_turf.dm +++ b/code/modules/lighting/lighting_turf.dm @@ -98,6 +98,8 @@ lighting_build_overlay() else lighting_clear_overlay() + for(var/obj/machinery/machine in contents) + machine.reregister_machine() /turf/proc/generate_missing_corners() if(!IS_DYNAMIC_LIGHTING(src) && !light_sources)