From af8f8cf66e303343f9b91ef22c63bff20459225f Mon Sep 17 00:00:00 2001 From: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:54:12 -0400 Subject: [PATCH] Lights now call update when moving Z-levels. (#96934) ## About The Pull Request As it says on the tin, light fixtures now call update when their Z-level changes. The intention here is to help fix lighting issues on shuttles, primarily the cargo shuttle and escape shuttle, to keep the shuttle(s) from arriving pitch black unless the bulb is replaced. ## Why It's Good For The Game This bug has been frusterating me for a bit. That said, I'm not 100% confident that this change is going to consistently or completely solve the issue, but does provide an additional way for lighting to fix itself, potentially. ## Changelog :cl: fix: Lights will now update themselves when moving Z-levels. /:cl: --- code/modules/power/lighting/light.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/power/lighting/light.dm b/code/modules/power/lighting/light.dm index 0858fe3c2aa..b77589db2df 100644 --- a/code/modules/power/lighting/light.dm +++ b/code/modules/power/lighting/light.dm @@ -750,6 +750,11 @@ continue INVOKE_ASYNC(src, PROC_REF(flicker)) +/obj/machinery/light/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents) + . = ..() + if(!QDELING(src)) + update(FALSE) + /obj/machinery/light/floor name = "floor light" desc = "A lightbulb you can walk on without breaking it, amazing."