mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-18 03:36:07 +01:00
fix a light issue (#9886)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user