From fbc3c84ee312fa5b80a5dce893f57f1c0787e2d7 Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Thu, 24 Aug 2023 23:58:51 -0700 Subject: [PATCH] [MIRROR] Fixes planet lighting (#6868) Co-authored-by: Casey Co-authored-by: CHOMPStation2 --- code/modules/lighting/lighting_turf.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/lighting/lighting_turf.dm b/code/modules/lighting/lighting_turf.dm index 47a604c0f4..6ef942836b 100644 --- a/code/modules/lighting/lighting_turf.dm +++ b/code/modules/lighting/lighting_turf.dm @@ -104,7 +104,7 @@ ///Checks planets and fake_suns to see if our turf should be handled by either /turf/proc/check_for_sun() - if((z in SSplanets.z_to_planet) || (z in fake_sunlight_zs)) + if((SSplanets && SSplanets.z_to_planet.len >= z && SSplanets.z_to_planet[z]) || (z in fake_sunlight_zs)) return TRUE return FALSE