Skip to content

Commit

Permalink
fix away mission for realsies
Browse files Browse the repository at this point in the history
  • Loading branch information
xTrainx committed Sep 24, 2024
1 parent 31763cc commit f04fe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/nightcycle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ SUBSYSTEM_DEF(nightcycle)
luminosity = 1
for(var/dir in GLOB.alldirs)
var/turf/neighbor = get_step(src, dir)
if(!neighbor || neighbor?.sunlight_state && neighbor?.sunlight_state != NO_SUNLIGHT)
if(!neighbor || !neighbor.type || neighbor?.sunlight_state && neighbor?.sunlight_state != NO_SUNLIGHT)
continue
neighbor.sunlight_state = SUNLIGHT_BORDER
if(neighbor.flags_1 & INITIALIZED_1)
Expand Down

0 comments on commit f04fe0d

Please sign in to comment.