Fix per-zlevel skyboxes not really allowing custom ones

It's not going to break the world to remove this 'assumption' cache
This commit is contained in:
Aronai Sieyes
2020-04-06 12:08:33 -04:00
parent 8a8cd93db5
commit 647bcb7597
2 changed files with 3 additions and 9 deletions

View File

@@ -47,11 +47,6 @@ SUBSYSTEM_DEF(skybox)
/datum/controller/subsystem/skybox/proc/get_skybox(z)
if(!skybox_cache["[z]"])
skybox_cache["[z]"] = generate_skybox(z)
if(global.using_map.use_overmap)
var/obj/effect/overmap/visitable/O = map_sectors["[z]"]
if(istype(O))
for(var/zlevel in O.map_z)
skybox_cache["[zlevel]"] = skybox_cache["[z]"]
return skybox_cache["[z]"]
/datum/controller/subsystem/skybox/proc/generate_skybox(z)