mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user