From c535784dcfc360a059a1c2dd908df55d1659da44 Mon Sep 17 00:00:00 2001 From: Fikou <23585223+Fikou@users.noreply.github.com> Date: Tue, 4 Nov 2025 01:51:01 +0100 Subject: [PATCH] connects floodlights to powernet on init (#93671) ## About The Pull Request why is copilot automatically writing my webedit commits bro ## Why It's Good For The Game Not a pain in the ass for Mappers ## Changelog :cl: code: mapped in floodlights connect to powernet immediately /:cl: --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/power/floodlight.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/power/floodlight.dm b/code/modules/power/floodlight.dm index 7d43f319475..762272ebd64 100644 --- a/code/modules/power/floodlight.dm +++ b/code/modules/power/floodlight.dm @@ -155,6 +155,9 @@ . = ..() RegisterSignal(src, COMSIG_OBJ_PAINTED, TYPE_PROC_REF(/obj/machinery/power/floodlight, on_color_change)) //update light color when color changes register_context() + if(mapload) + set_anchored(TRUE) + connect_to_network() /obj/machinery/power/floodlight/proc/on_color_change(obj/machinery/power/flood_light, mob/user, obj/item/toy/crayon/spraycan/spraycan, is_dark_color) SIGNAL_HANDLER