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)
This commit is contained in:
Migratingcocofruit
2024-10-12 17:08:52 +00:00
committed by GitHub
parent f6298184f5
commit 80821c0b7a
+2
View File
@@ -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)