[MIRROR] Fixes planet lighting (#6868)

Co-authored-by: Casey <a.roaming.shadow@gmail.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2023-08-24 23:58:51 -07:00
committed by GitHub
parent 20da89c88f
commit fbc3c84ee3

View File

@@ -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