This commit is contained in:
silicons
2020-12-26 20:56:48 -08:00
parent bfb3d087c3
commit a6ae0fe5c2
5 changed files with 23 additions and 3 deletions
@@ -63,6 +63,8 @@
/datum/controller/subsystem/persistence/proc/SaveMapDebris()
if(fexists("[get_map_persistence_path()]/debris.json"))
fdel("[get_map_persistence_path()]/debris.json")
if(CONFIG_GET(flag/persistent_debris_wipe_on_nuke) && SSticker?.mode?.station_was_nuked)
return // local janitor cheers on nukeop team to save some work
var/list/data = list()
var/list/z_lookup = SSmapping.z_to_station_z_index
var/list/debris = RelevantPersistentDebris()