mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user