fix a light issue (#9886)

This commit is contained in:
Kashargul
2025-01-17 16:33:27 +01:00
committed by GitHub
parent fe9748b06c
commit 799ef678e4
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -182,7 +182,7 @@
propogate_sunlight_changes(oldtype, old_density, new_turf)
var/turf/simulated/cur_turf = src
if(is_open != was_open)
if(istype(cur_turf) && is_open != was_open)
do
cur_turf = GetBelow(cur_turf)
if(is_open)
@@ -25,6 +25,11 @@
shandler = new(src)
shandler.manualInit()
/turf/simulated/lighting_build_overlay()
..()
if(shandler)
shandler.only_sun_object = lighting_object
/datum/sunlight_handler
var/datum/simple_sun/sun
var/turf/simulated/holder