Fixes mail crates sometimes spawning inside the Supply shuttle engines (#22567)

* Thanks Mira for giving me this proc

* GDN review
This commit is contained in:
DGamerL
2023-10-01 11:42:28 +01:00
committed by GitHub
parent 291728d71b
commit d118ae5bcf
+2 -4
View File
@@ -294,13 +294,11 @@ SUBSYSTEM_DEF(shuttle)
if(!length(supply_shuttle_turfs))
for(var/turf/simulated/T in supply.areaInstance)
if(T.density)
if(is_blocked_turf(T))
continue
for(var/obj/structure/structure in T.contents)
if(structure.density)
continue
supply_shuttle_turfs += T
if(!length(supply_shuttle_turfs)) // In case some nutjob walled the supply shuttle 10 minutes into the round
stack_trace("There were no available turfs on the Supply Shuttle to spawn a mail crate in!")
return
var/turf/spawn_location = pick(supply_shuttle_turfs)
new /obj/structure/closet/crate/mail(spawn_location)